Cranking Code

Mark Holland

Running Padrino Rake Tasks in Production

An aide memoire for my own future reference.

In order to run Padrino Rake tasks in the production environment the ENV variable needs to be placed before the command. It took a fair bit of flailing about before discovering this.

For example:

1
PADRINO_ENV=production bundle exec padrino rake -T