如何在我的Capistrano任务的执行语句中传递--env变量"staging or production“?
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
目前,一旦启动,process.env.NODE_