LoginSignup
6
6

More than 5 years have passed since last update.

[Ruby on Rails]foremanを使ってrake taskを起動する方法

Posted at

usageの説明がちょっと分かり辛いので備忘録・・

bash
foreman run rake tasknamespace:task

ついでにざっくりとforemanをインストールして使うまでメモ

Gemfile
gem 'foreman'
gem 'thin'
bash
bundle install
.env
PORT=3000
AWS_ACCESS=aaaaaa
AWS_SECRET=bbbbbb
Procfile
web:bundle exec thin start -p $PORT
foreman start
6
6
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
6
6