Skip to content

Instantly share code, notes, and snippets.

@guxiaobai
Created May 20, 2018 05:10
Show Gist options
  • Select an option

  • Save guxiaobai/19696582ac34eff4bdafdb4d5b4b7553 to your computer and use it in GitHub Desktop.

Select an option

Save guxiaobai/19696582ac34eff4bdafdb4d5b4b7553 to your computer and use it in GitHub Desktop.
ruby 启动相关

bundle install --path /var/www/jky_api_bear/shared/bundle --without development test --deployment --quiet

bundle exec sidekiqctl stop /var/www/jky_api_bear/shared/tmp/pids/sidekiq-0.pid 10

bundle exec sidekiq --index 0 --pidfile /var/www/jky_api_bear/shared/tmp/pids/sidekiq-0.pid --environment production --logfile /var/www/jky_api_bear/shared/log/sidekiq.log --queue default --config config/sidekiq.yml --concurrency 5 --daemon

bundle exec pumactl -S /var/www/jky_api_bear/shared/tmp/pids/puma.state restart

bundle exec puma -C /var/www/jky_api_bear/shared/puma.rb --daemon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment