How can I pass the --env variable "staging or production" in the execute statement my Capistrano tasks ?
def restart_app
within current_path do
execute :pm2, :restart, fetch(:app_command)
end
end
def start_app
within current_path do
execute :pm2, :stop, fetch(:app_command)
end
end
currently once started , process.env.NODE_ENV is undefined