lib/capistrano-deploy-management/puma.rb in capistrano-deploy-management-0.1.13 vs lib/capistrano-deploy-management/puma.rb in capistrano-deploy-management-0.1.14

- old
+ new

@@ -17,10 +17,10 @@ desc 'Start puma.' task :start, :roles => :app, :except => {:no_release => true} do # run "cd #{current_path} && puma -C #{puma_config}" # TODO: fix hardcoded port setting by using a config file - run "cd #{current_path} && bundle exec rails s puma --port #{puma_port} -e #{rails_env} --pidfile #{puma_pidfile}" + run "cd #{current_path} && bundle exec rails s puma --port $(#{puma_port}) -e #{rails_env} --pidfile #{puma_pidfile}" end desc 'Stop puma.' task :stop, :roles => :app, :except => {:no_release => true} do run "test -s #{puma_pidfile} && kill $(#{puma_pid}) || echo 'puma not running. nothing to kill.'" \ No newline at end of file