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

Issue: Raneto - Heroku, not saving anything! #267

Closed
ghost opened this issue May 15, 2018 · 4 comments
Closed

Issue: Raneto - Heroku, not saving anything! #267

ghost opened this issue May 15, 2018 · 4 comments
Labels
question Support / Question

Comments

@ghost
Copy link

ghost commented May 15, 2018

I followed the instructions from your documentation to host Raneto on Heroku.
http://docs.raneto.com/tutorials/deploying-raneto-to-heroku

Everything went well and it's hosted nicely with my custom domain, so far so good ;-)!

However...When I make new categories or pages and I restart the dyno, everything newly created is gone. It doesn't save the pages or newly made categories. It only shows the (default) pages which are placed in /example/content/.

Any help would be greatly appreciated!

Thanks,
Justin.

@ghost
Copy link
Author

ghost commented May 23, 2018

I've purchased another VPS to host Raneto, so this can be closed for me. However I think others will still have the same problem as I had when they host on Heroku.

@dharmendra1986
Copy link

Even I am facing the same issue. couldn't find any workaround for that.

@hplageman
Copy link

hplageman commented May 23, 2019

I figured this out. Sign in and make your changes on your LOCAL repository, then push to the remote one. Do not make your changes on your live herokuapp instance, as the changes will not be accessible.

@ryanlelek ryanlelek added the question Support / Question label Aug 12, 2022
This was referenced Aug 12, 2022
@ryanlelek
Copy link
Owner

Hi, you're right. and thank you for submitting.

Heroku is "stateless" and will not persist data. This is because the "web" dynos (servers) get destroyed like you mention.
Further reading on Heroku's deployments at 12Factor

By editing locally and committing your changes to git, the Heroku dyno will have the files when it restarts from zero.

I'll mark this in the upcoming Documentation megathread (link is above this comment) so we can make sure this is clear in our docs. Hopefully updating the docs will prevent future frustration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Support / Question
Projects
None yet
Development

No branches or pull requests

3 participants