models:
User
columns: & data type:
Task
columns: & data type:
Label
columns: & data type:
Manager
task_id : integer
lable_id : integer
Need to be done only once at firsttime deployment
Setting in rails app
for 'AssetsPipeline'
* add config.assets.compile = true
on to /config/environments/development.rb
rails assets:precompile RAILS_ENV=production
Create app in Heroku
heroku create <app_name>
add buildpacks
for compile at Heroku
heroku buildpacks:set heroku/ruby
heroku buildpacks:add --index 1 heroku/nodejs
(「1」for if you want to include this buildpack at first)Migrate DB
gem 'pg'
on to Gemfile.heroku run rails db:migrate
Need to be done each deployment
Deploy to Heroku
git remote -v
if remote has been set, then)git add <. or file_name>
git commit -m'<commit_messages>'
git push heroku master
The other settings
heroku config:set <Environment variable>=<value>
if you need.