Deploy Rails App to Heroku

rvm --list # to list of Ruby versions installed on your machine
rvm use <Ruby version> --default # set default ruby version
group :production do  gem "pg", "~> 1.2"
{"name": "inventory_management_system","version": "1.0.0","description": "[App name]","engines": {"node": "[add app's node version]"},"scripts": {"clean": "rm -rf public","build": "npm install --prefix client && npm run build --prefix client","deploy": "cp -a client/build/. public/","heroku-postbuild": "npm run clean && npm run build && npm run deploy"},"author": "[author name]"}


web: bundle exec rails s
release: bin/rake db:migrate
heroku login
heroku create
git push heroku main
heroku open 
heroku run rails c



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store