Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialLaetitia Massa
3,388 PointsHow to set up a staging environment ?
Hi there,
I've built a web app which has now some users, so it seems beter to not push my code directly to production environement. Someone explained to me that a staging environment was necessary. I then followed the Heroku manual to do so, the app is online, but whatever I try to do with it (which has appenrently a connection with a database), I get an error.
What should I do to finish my staging environment installation? Many thanks!
Laetitia Massa
3,388 PointsHi Georges,
I don't know since I don't know how to go see the logs of the staging environment
1 Answer
Scott Magdalein
2,406 PointsTo see the error, try using heroku logs
.
Laetitia Massa
3,388 PointsHi Scott, thanks for your reply - I realized that the error was due to the fact that I hadn't synced and migrated the production db to the staging db.
Now I have, but it seems like I can't get it to work, because there a missign buckets (due to paperclip, and aws keys). I'm now trying to just make git push staging master but my app has been renamed directly in heroku so git doesn't seem to recognize the new name (and calls it new-arcane etc...).
... still trying to fix all my mess here... Any idea of how to properly sync aws3 for paperclip in the staging envirenment ?
George Offley
Courses Plus Student 7,386 PointsGeorge Offley
Courses Plus Student 7,386 PointsWhat's the error you're getting??