create-your-own-heroku-review-apps-with-dokku icon indicating copy to clipboard operation
create-your-own-heroku-review-apps-with-dokku copied to clipboard

Multiple domains

Open mimischi opened this issue 8 years ago • 3 comments

Not sure if I understand it correctly, but would it be possible to use separate domains for different branches here? I'd like my production app to run on app.example.com and the staging branches to be on *.app.testdomain.com

If I understand it correctly this setup only allows to use one domain for all branches?

mimischi avatar Apr 22 '16 06:04 mimischi

This setup uses separate domain for each branch as ${BRANCH_NAME}.appname.yourdomain.xxx I wrote about in README

Master brunch will be available at http://dokku.mysite.com and all other brunches will be available at ${CURRENT_GIT_BRANCH_NAME}.dokku.mysite.com

istarkov avatar Apr 22 '16 06:04 istarkov

Right, so I did understand it correctly.

My problem is that I don't have access to the DNS-Settings of my production domain and would like to use some other domain for staging branches. Is that possible to implement or would this be not that easy?

mimischi avatar Apr 22 '16 07:04 mimischi

I think it's not a problem with dokku at all. You can create multiple apps on a single repo, for example production and staging, and create different domains for each app (see dokku documentation dokku domains:add myapp example.com) Add two remotes (production and staging) for your git repo, and just deploy PRs into staging remote.

istarkov avatar Apr 22 '16 08:04 istarkov