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
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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. <br> <br>First you need to set up two A records: <br> <br>youdomain.com IN A your.ip.address <br>*.youdomain.com IN A your.ip.address <br> <br>Then edit the file “/home/dokku/VHOST” on your droplet to contain “youdomain.com” Now you app will become available at: <br> <br>http://yourapp.youdomain.com
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.