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 trialDave Johnson
2,038 PointsGetting Error Deploying to Heroku
I am getting an error when I try to tell Heroku to use production. Below is the error message:
Setting config vars and restarting shrouded-everglades-3395... failed
! Resource not found
I created a Heroku account and did Heroku apps:create, which generated the app above shrouded-everglades-3395
I've added the below to the gemfile
group :development do
gem 'sqlite3'
end
group :production do
gem 'pg'
end
I also added a "Procfile" with this:
web: bundle exec rails server -e $RAILS_ENV -p $PORT
Why am I getting this error?
3 Answers
Dave Johnson
2,038 PointsGetting closer to an answer.. Not sure if this helps. When I create an app using the following command in my rails app:
heroku apps:create
It creates the app in Heroku on my account but doesn't really link it to my rails application. After I create it I still can't run any other heroku commands on it like:
heroku maintenance
That error message just says:
! App not found
What step am I missing?
Alan Johnson
7,625 Points@Dave - What do you get when you run heroku apps
?
Dave Johnson
2,038 PointsHey Alan,
Thanks for the quick response. I got my app working perfectly using this really great tutorial site.
I was missing the following:
# Heroku requires this to be false
config.assets.initialize_on_precompile=false
Thanks, Dave