Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When updating PUBLIC_URL, change doesn’t take affect until Heroku redeploy #1

Open
bmann opened this issue May 11, 2019 · 0 comments

Comments

@bmann
Copy link
Owner

commented May 11, 2019

On first install, a PUBLIC_URL of YOURAPPNAME.herokuapp.com is initially used. When you add a custom domain name in Heroku, and then update the PUBLIC_URL in Heroku environment variables, Ghost won’t pick up this change until a redeploy happens.

Redeploys mean that you need access to git on the command line (or have your Heroku app linked to a Github repo), which is not ideal.

You can commit an empty commit: https://stackoverflow.com/questions/41345744/redeploy-heroku-app-without-code-changes

And there is a relatively new Heroku plugin, Releases Retry https://www.npmjs.com/package/heroku-releases-retry, that doesn’t require a git commit but does need heroku command line tools.

Solutions:

  • fully document connecting git to your heroku app and doing an empty git commit

@bmann bmann added the Documentation label May 11, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.