root to: 'lists#index'
This step allows us to go to our herokuapp with no path like https://xxxxxx.herokuapp.com
- [ ] Create/Login to Heroku
# make sure you install Heroku in your Terminal and log in (check slides)
heroku create $YOUR_APP_NAME --region=us
git push heroku master
- [ ] Run migrations (and seeds)
heroku run rails db:migrate db:seed
- (Open this) IF you see this error:
PG::ConnectionBad: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432
- [ ] Add dotenv-rails gem to your Gemfile
gem 'dotenv-rails', groups: [:development, :test]
bundle install
touch .env
echo '.env*' >> .gitignore
# Gemfile
gem 'cloudinary', '~> 1.16.0'
# .env
# ⚠️ Make sure you use YOUR api key from the Cloudindary dash
CLOUDINARY_URL=cloudinary://298522699261255:Qa1ZfO4syfbOC-***********************8