rails new shopdemo --database=postgresql
rails db:create
rails db:drop
gem install foreman
yarn add webpack-dev-server
Gemefile
gem 'foreman', '~> 0.82.0'
bundle install
新增Procfileweb: rails server -p 3000
webpack: bin/webpack-dev-server
gem 'rack-mini-profiler', '~> 2.0'
今天寫個步驟!先分享到這邊,謝謝