Good day everyone! I have dokku in my droplet. After every deployment, port of my node.js-application changed to something like “45967” and other. Can I specify static port, which will not be changed after deployment? How I can do it?
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!
You can not specify a port for Dokku to run on. The port is not persistent and can change on each deploy. In order to access a app running on Dokku at a stable URL, you’ll need to use a subdomain. Check the box labeled “Use virtualhost naming for apps” when you first browse to the IP address:

To convert an existing Dokku installation to use the subdomain naming scheme, edit the file /home/dokku/VHOST on your droplet to contain “youdomain.com” Now you app will become available at: 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.