Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code not Deploying Sometimes #403

Closed
Matt-Lepley opened this issue Jul 15, 2016 · 1 comment
Closed

Code not Deploying Sometimes #403

Matt-Lepley opened this issue Jul 15, 2016 · 1 comment

Comments

@Matt-Lepley
Copy link

When I do a mina deploy no errors will happen and it shows starting/stopping of sidekiq etc.. but sometimes the latest code doesn't actually deploy to the production server or our staging server. If I had to guess, I would say ~90% of the time it works and ~10% it doesn't. To fix the issue, I have to manually kill the unicorn pid and then do a re-deploy and this works every time.

I don't see anything in the code that could be causing issues, should I be stopping unicorn and then starting it back up instead of just restarting it? My thought there is that I might miss requests.

deploy.rb

desc "Deploys the current version to the server."
task :deploy => :environment do
  deploy do

    # stop accepting new workers
    invoke :'sidekiq:quiet'

    invoke :'git:clone'
    invoke :'deploy:link_shared_paths'
    invoke :'bundle:install'
    invoke :'rails:db_migrate'
    invoke :'rails:assets_precompile'
    invoke :'deploy:cleanup'

    to :launch do
      invoke :'sidekiq:restart'
      invoke :'unicorn:restart'
    end
  end
@d4be4st
Copy link
Member

d4be4st commented Jul 30, 2016

Seems like your unicorn doesn't restart as it should.
Unicorn and sidekiq are not officialy supported by mina so you will have to go to their respected githubs.

Sorry

@d4be4st d4be4st closed this as completed Jul 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants