How to run rake in ruby-on-rails application in production? How to run rake in ruby-on-rails application in production? elasticsearch elasticsearch

How to run rake in ruby-on-rails application in production?


You should go to the root path of your project directory in production and type the following command:

RAILS_ENV=production bundle exec rake app:elasticsearch

Note:

To check the available list of rake tasks, you can type rake -T