0
如何在执行语句Capistrano任务中传递--env变量“staging or production”?Capistrano任务启动/重新启动pm2如何传递--env变量
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_ENV未定义
有线索阅读以下帖子 http://stackoverflow.com/questions/19452983/capistrano-3-execute-within-a-directory – erwin