-
-
Notifications
You must be signed in to change notification settings - Fork 227
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
Ghost update fails if config.production.json is a link #708
Comments
So I looked into this a bit further - the reason we're even overwriting that config file is so we could suppress the logging output of knex-migrator. There are two problems here:
For the second problem - there are a couple of potential solutions:
|
refs TryGhost#708 - this was from the days where we executed knex-migrator directly. We no longer do that, so suppressing the knex-migrator command output is no longer necessary
refs #708 - this was from the days where we executed knex-migrator directly. We no longer do that, so suppressing the knex-migrator command output is no longer necessary
closes TryGhost#708 - remove any need to save the config out of the migrations step - instead, we set the content path during ghost setup
After doing some local testing, I was not able to reproduce the original issue when my permissions were correct. My guess is that the issue the user experienced in the forum was related to permissions issues, and not related to the fact that the config.production.json was a symlink. That said, I've created a couple of PRs to remove the need to save the config during migrations, so that should fix the specific problem the user was running into. |
closes #708 - remove any need to save the config out of the migrations step - instead, we set the content path during ghost setup
From the forum: https://forum.ghost.org/t/ghost-update-fails-if-config-production-json-is-a-link/997
This issue is a
Summary
To facilitate source control of a multi-tenanted ghost VPS, I have all my config.production.json in /etc/ghost and have linked config.production.json from each blog back to the relevant file in etc.
Even though all the ownership and permissions of the relevant files - including the link-files themselves - are correct (i.e. non-root and non-ghost), the ghost update command fails with this error:
Log file (for a bug report)
Technical details (for a bug report)
This is automatically output by Ghost-CLI if an error occurs, please copy & paste:
Bug submission checklist
Please fill out this checklist to acknowledge that you followed the requirements to submit a bug report.
The text was updated successfully, but these errors were encountered: