Django: sudden DB reset after Heroku sleep

Heroku dynos have an ephemeral filesystem (https://devcenter.heroku.com/articles/dynos#ephemeral-filesystem). Since you are using SQLite which is actually a file on the filesystem, everything will run smoothly until the dyno running your application needs to restart – so its filesystem will be reset and you’ll lose everything ! To avoid it just configure your application to use Heroku-Postgresql.

heroku – Missing required arguments: aws_access_key_id, aws_secret_access_key, following Hartl tutorial

Go on Heroku, on your application, go to settings, hit Reveal Config Vars. Click on on Edit on the right side and enter your secrets there: S3_BUCKET: name of your bucket goes here S3_ACCESS_KEY: xxxxx S3_SECRET_KEY: xxxx On config/initializers/carrierwave.rb or wherever you’re entering your secrets should have: CarrierWave.configure do |config| config.root = Rails.root.join(‘tmp’) # adding … Read more

Deploying Django to Heroku (Psycopg2 Error)

EDITED: As @mipadi has pointed out here (http://stackoverflow.com/questions/13001031/django-heroku-settings-injection/13092534), it can actually be as simple as this: import dj_database_url DATABASES = {‘default’ : dj_database_url.config() } This works if you have a DATABASE_URL env variable set. heroku:pg_promote gets your there. Details below Make sure you have Postgres on your Heroku heroku addons:add heroku-postgresql:dev Step 1: figure out … Read more

Errors of pushing rails app to Heroku error occurred while installing sqlite3, and Bundler cannot continue [duplicate]

I don’t see it in your code above, but guessing you probably have your gem ‘sqlite3’ at the top of your gemfile, so it is being used in all environments. Sqlite is not supported on Heroku so it has be kept out of the production group. Try the following so that you can use sqlite … Read more