want to deploy my project local to production server. At my local machine I am using gulp build gulp serve command.
This command is redirected to me at http://localhost:3000.
When I added code on production server and run these command. it is redirect to me at http://142.93.165.118:3000
I want to display original host url like:https://example.com Currently it is displaying http://142.93.165.118:3000 on production server.
Top comments (1)
So, first of all, you should tell us if you are using a hosting panel like CPanel of Plesk or something.
If not, you need to run your app on port 80 and point your domain to your server using an A record if you don't have a DNS server.
The best thing you can do is using
pm2
which is a great tool to run and manage node apps on the server.BTW you better use the #help tag on your post.