0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Ruby on Rails 6にforeman導入メモ

Posted at

gem導入

Gemfile
gem 'foreman', group: :development

Procfile.devを実行するbin/server作成

#!/bin/bash -i
bundle install
bundle exec foreman start -f Procfile.dev

コマンドを実行するProcfile.dev作成

Procfile.dev
web: /bin/sh -c "rm -f tmp/pids/server.pid && bundle exec rails s -p 3000 -b '0.0.0.0'"
webpacker: ./bin/webpack-dev-server

bin/serverの権限変更

chmod 777 bin/server

サーバースタート

bin/server
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?