Skip to content

Commit

Permalink
Merge pull request #9 from mengqing/fix-symlink
Browse files Browse the repository at this point in the history
PM2 cwd path should always be the current path
  • Loading branch information
tomhanoldt committed Aug 29, 2018
2 parents aa657d5 + b665565 commit dbce40f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/capistrano/tasks/pm2.rake
Expand Up @@ -30,7 +30,7 @@ namespace :pm2 do

desc 'Start pm2 application'
task :start do
run_task :pm2, :start, fetch(:pm2_app_command), "--name #{app_name} #{fetch(:pm2_start_params)}"
run_task :pm2, :start, fetch(:pm2_app_command), "--cwd #{current_path} --name #{app_name} #{fetch(:pm2_start_params)}"
end

desc 'Stop pm2 application'
Expand Down

0 comments on commit dbce40f

Please sign in to comment.