This morning, I upgraded my Ghost blog from 0.3.3 (the original droplet version) to 0.7.1.
sudo service nginx stop.ghost-latest.zip file.core folder and replaced it with the one from the compressed file.index.js, Gruntfile.js, package.json, and the Markdown files. I also added the npm-shrinkwrap.json file.node-modules folder with sudo rm -r node_modules, then ran sudo npm cache clear before running sudo npm install --production.ghost user, as was the case prior.npm start --production. My database was migrated from version 000 to version 004, and I got the message Ghost is running in production... in the console.config.js in the Ghost main folder or the nginx configuration file. I know that nginx is still functioning, because I have multiple sites referenced in the configuration file, and they are all still running.When I try to access the Ghost blog, I get a 502 Bad Gateway error. I’ve restarted both the nginx and ghost services and I still get the same error. Can anyone help?
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!
In many cases, running sudo npm start --production directly will result in an error. Ideally, you should run sudo service ghost restart instead (which should run exec /usr/local/bin/npm start --production when called and start is passed as an argument).
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.