create-your-own-heroku-review-apps-with-dokku
create-your-own-heroku-review-apps-with-dokku copied to clipboard
Multiple domains
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?
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
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?
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.