rails run rake task in production only code example Example: run rake task rails $ bin/rake task_name