Skip to content
New issue

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

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

Already on GitHub? # to your account

foreman stop mina create current folder issue #396

Closed
dcalixto opened this issue Jun 29, 2016 · 1 comment
Closed

foreman stop mina create current folder issue #396

dcalixto opened this issue Jun 29, 2016 · 1 comment

Comments

@dcalixto
Copy link

Someone know why the mina can't create the current diretory after add foreman?

-----> Cleaning up old releases (keeping 5)
-----> Exporting foreman procfile for
bash: line 152: cd: /home/ubuntu/test/current:
File or directory not found
sudo: bundle: command not found
! ERROR: Deploy failed.
-----> Cleaning up build
Unlinking current
OK
Connection to 55.77.221.43 closed.

deploy do
    # Put things that will set up an empty directory into a fully set-up
    # instance of your project.
    invoke :'git:clone'
    invoke :'deploy:link_shared_paths'
    invoke :'bundle:install'
    invoke :'rails:db_migrate'
    invoke :'rails:assets_precompile'
    invoke :'deploy:cleanup'
    invoke :'foreman:export'


    to :launch do
      queue "mkdir -p #{deploy_to}/#{current_path}/tmp/"
      queue "touch #{deploy_to}/#{current_path}/tmp/restart.txt"
      invoke 'foreman:restart'
    end
@inyerade
Copy link

inyerade commented Aug 1, 2017

@dcalixto how you solve this?
I have this problems with sidekiq and puma

This do not work

    ....
    on :launch do
        in_path(fetch(:current_path)) do
            command %{mkdir -p tmp/}
            command %{touch tmp/restart.txt}
        end
        invoke :'sidekiq:restart'
        invoke :'puma:phased_restart'
    end

I get

bash: line 197: bundle: command not found

And this work

    ...
    invoke :'sidekiq:restart'
    invoke :'puma:phased_restart'
    on :launch do
        in_path(fetch(:current_path)) do
            command %{mkdir -p tmp/}
            command %{touch tmp/restart.txt}
        end    
    end

I get

...
-----> Stop sidekiq
   Sidekiq shut down gracefully.
   .../tmp/build-15016067113095
-----> Start sidekiq
   .../tmp/build-15016067113095
-----> Restart Puma -- phased...
   Command phased-restart sent success

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants