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.

Revisions

  1. guxiaobai created this gist May 20, 2018.
    10 changes: 10 additions & 0 deletions ruby_command.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    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