Question

How to access my app via ip without specify port?

Posted May 6, 2014 3.4k views
Hi, I have a Dokku app that uses Django (don't know if that's important). When I type my url on browser I get a "It works" page, but when I push I get something like: --> Application deployed: http://9*.**.**.*5:49157 But when pushed an update it was like: --> Application deployed: http://9*.**.**.*5:49159 So, how can I make it, so, doesn't matter how many times I push, it remains in same port (otherwise I won't be able to set a domain name). It would be perfect if you could tell me how could I make it so I didn't have to type the port, just the url in browser and still see my code. Thanks

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer
To have a persistent URL you need to set up DNS first. There isn't a way to have a persistent port number with Dokku.

First you need to set up two A records:

youdomain.com IN A your.ip.address
*.youdomain.com IN A your.ip.address

Then edit the file "/home/dokku/VHOST" on your droplet to contain "youdomain.com" Now you app will become available at:

http://yourapp.youdomain.com
Submit an Answer