By Kiko Beats
I feel happy with my Droplet with Ubuntu + Dokku. However, In the installation I used a domain and I want to change for another.
It is possible without make a fresh install? I put much effort in setup databases in services :'(
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!
This question was answered by @maikofelix89:
Yeah its possible.Ive done it a number of times.There are two modes
1.server side(ssh session to your droplet) simply run the command
dokku domains:set appname mydomain.com *.mydomain.comwhere appname is your dokku app name,mydomain is the name of your domain.it does not necessarily have to be .com . once you run that it should release the application and deploy it again
2.client(side) i’m assuming you deploy your application from your machine using “git dokku push master” command.if so then you should change the git remote of your machine use
git remote -v //to check your remotesif one exists then you can remove it using
git remote rm remotename //remote name is the one shown on source and destinationfinally to change the domain name run the following command
git remote add dokku dokku@yourdomain:yourappnamei hope this helps someone :)
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.