I have tried many ways to deploy my local server project to live server or another PC but not working very well.
so please give me a better and exact solution for it.
thanks in advance.
If you are doing it manually this is the process.
base_urlfrom your database. Update your project URL with new Server accessible URL.
UPDATE `core_config_data` SET `value`='http://myserver.com' WHERE `path` = 'web/unsecure/base_url' UPDATE `core_config_data` SET `value`='https://myserver.com' WHERE `path` = 'web/secure/base_url'
https://myserver.com with your server URL.
bin/magento setup:upgrade bin/magento setup:di:compile bin/magento setup:static-content:deploy -f
Now everything should work properly...!!