Deploying a ReactJS/Rails Project to Heroku

git init
git add .
git commit -m 'my first commit'
git remote add origin git@github.com:username/new_repo
git push -u origin master
brew install yarn
yarn add [package-name]
rails new your-app-name — database=postregresql.
gem ‘sqlite3’
// with
gem ‘pg’
bundle install
default: &default
adapter: postgresql
encoding: unicode
...
cd boggle-game-backend
heroku login
heroku create boggle-game-backend
git remote add heroku git@heroku.com:boggle-game-backend.git
git add .
git commit -m ‘my first heroku commit’
git push heroku master
heroku run rails db:migrate
{ “root”: “build/”, “routes”L { “/**”: “index.html” } }
heroku create boggle-game-frontend — buildpack https://github.com/mars/create-react-app-buildpack.git
git remote add heroku git@heroku.com:boggle-game-backend.git
git add .
git commit -m ‘my first heroku commit’
git push heroku master
heroku open

--

--

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