{"action":"created","issue":{"url":"https://api.github.com/repos/Mic92/mina-sidekiq/issues/18","repository_url":"https://api.github.com/repos/Mic92/mina-sidekiq","labels_url":"https://api.github.com/repos/Mic92/mina-sidekiq/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/Mic92/mina-sidekiq/issues/18/comments","events_url":"https://api.github.com/repos/Mic92/mina-sidekiq/issues/18/events","html_url":"https://github.com/Mic92/mina-sidekiq/issues/18","id":183904994,"number":18,"title":"Sidekiq is not properly setup with bundler","user":{"login":"hendricius","id":816859,"avatar_url":"https://avatars.githubusercontent.com/u/816859?v=3","gravatar_id":"","url":"https://api.github.com/users/hendricius","html_url":"https://github.com/hendricius","followers_url":"https://api.github.com/users/hendricius/followers","following_url":"https://api.github.com/users/hendricius/following{/other_user}","gists_url":"https://api.github.com/users/hendricius/gists{/gist_id}","starred_url":"https://api.github.com/users/hendricius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hendricius/subscriptions","organizations_url":"https://api.github.com/users/hendricius/orgs","repos_url":"https://api.github.com/users/hendricius/repos","events_url":"https://api.github.com/users/hendricius/events{/privacy}","received_events_url":"https://api.github.com/users/hendricius/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-19T09:03:55Z","updated_at":"2016-10-19T11:02:53Z","closed_at":null,"body":"I am having an issue to get plugin to run. The command that fails during deployment is:\r\n\r\n`bundle exec sidekiq -d -e production  -C /home/travelninja/app/current/config/sidekiq.yml -i 0 -P /home/travelninja/app/shared/pids/sidekiq.pid -L /home/travelninja/app/current/log/sidekiq.log`\r\n\r\nThe problem as far as I can see is that it is using `bundle exec`. It should not be using that, it should use the bundler data that is deployed by mina during every deployment.\r\n\r\nI think I have to manually set `sidekiq`. But where to?\r\n\r\nBelow is my full deploy.rb:\r\n\r\n```\r\nrequire 'mina/rails'\r\nrequire 'mina/git'\r\nrequire 'mina/rbenv'  # for rbenv support. (https://rbenv.org)\r\n# require 'mina/rvm'    # for rvm support. (https://rvm.io)\r\nrequire 'mina_sidekiq/tasks'\r\n\r\n# Basic settings:\r\n#   domain       - The hostname to SSH to.\r\n#   deploy_to    - Path to deploy into.\r\n#   repository   - Git repo to clone from. (needed by mina/git)\r\n#   branch       - Branch name to deploy. (needed by mina/git)\r\n\r\nset :domain, 'testenv.tripl.de'\r\nset :deploy_to, '/home/travelninja/app'\r\nset :repository, 'git@github.com:gotripl/app.git'\r\nset :branch, 'master'\r\n# set :sidekiq, 'vendor/bundle/sidekiq'\r\n\r\n# Optional settings:\r\nset :user, 'travelninja'          # Username in the server to SSH to.\r\n#   set :port, '30000'           # SSH port number.\r\n#   set :forward_agent, true     # SSH forward_agent.\r\n\r\n# They will be linked in the 'deploy:link_shared_paths' step.\r\n# set :shared_dirs, fetch(:shared_dirs, []).push('config')\r\nset :shared_files, fetch(:shared_files, []).push('.rbenv-vars')\r\n\r\n# This task is the environment that is loaded all remote run commands, such as\r\n# `mina deploy` or `mina rake`.\r\ntask :environment do\r\n  # If you're using rbenv, use this to load the rbenv environment.\r\n  # Be sure to commit your .ruby-version or .rbenv-version to your repository.\r\n  invoke :'rbenv:load'\r\n\r\n  # For those using RVM, use this to load an RVM version@gemset.\r\n  # invoke :'rvm:use', 'ruby-1.9.3-p125@default'\r\nend\r\n\r\n# Put any custom commands you need to run at setup\r\n# All paths in `shared_dirs` and `shared_paths` will be created on their own.\r\ntask :setup do\r\n  # command %{rbenv install 2.3.0}\r\n  command %(mkdir -p \"#{fetch(:deploy_to)}/shared/pids/\")\r\n  command %(mkdir -p \"#{fetch(:deploy_to)}/shared/log/\")\r\nend\r\n\r\ndesc \"Deploys the current version to the server.\"\r\ntask :deploy do\r\n  # uncomment this line to make sure you pushed your local branch to the remote origin\r\n  # invoke :'git:ensure_pushed'\r\n  deploy do\r\n    # Put things that will set up an empty directory into a fully set-up\r\n    # instance of your project.\r\n    invoke :'sidekiq:quiet'\r\n    invoke :'git:clone'\r\n    invoke :'deploy:link_shared_paths'\r\n    invoke :'bundle:install'\r\n    invoke :'rails:db_migrate'\r\n    invoke :'rails:assets_precompile'\r\n    invoke :'deploy:cleanup'\r\n\r\n    on :launch do\r\n      invoke :'sidekiq:restart'\r\n      in_path(fetch(:current_path)) do\r\n        command %{mkdir -p tmp/}\r\n        command %{touch tmp/restart.txt}\r\n      end\r\n    end\r\n  end\r\n\r\n  # you can use `run :local` to run tasks on local machine before of after the deploy scripts\r\n  # run :local { say 'done' }\r\nend\r\n\r\n# For help in making your deploy script, see the Mina documentation:\r\n#\r\n#  - https://github.com/mina-deploy/mina/docs\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/Mic92/mina-sidekiq/issues/comments/254781361","html_url":"https://github.com/Mic92/mina-sidekiq/issues/18#issuecomment-254781361","issue_url":"https://api.github.com/repos/Mic92/mina-sidekiq/issues/18","id":254781361,"user":{"login":"hendricius","id":816859,"avatar_url":"https://avatars.githubusercontent.com/u/816859?v=3","gravatar_id":"","url":"https://api.github.com/users/hendricius","html_url":"https://github.com/hendricius","followers_url":"https://api.github.com/users/hendricius/followers","following_url":"https://api.github.com/users/hendricius/following{/other_user}","gists_url":"https://api.github.com/users/hendricius/gists{/gist_id}","starred_url":"https://api.github.com/users/hendricius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hendricius/subscriptions","organizations_url":"https://api.github.com/users/hendricius/orgs","repos_url":"https://api.github.com/users/hendricius/repos","events_url":"https://api.github.com/users/hendricius/events{/privacy}","received_events_url":"https://api.github.com/users/hendricius/received_events","type":"User","site_admin":false},"created_at":"2016-10-19T11:02:53Z","updated_at":"2016-10-19T11:02:53Z","body":"I also double checked how `mina-puma` does it:\r\n\r\n```\r\n  set_default :puma_cmd,       -> { \"#{bundle_prefix} puma\" }\r\n\r\n```\r\n\r\nThat seems to be outdated though. The default rails commands are run like this:\r\n\r\n```\r\nset :rake, -> { \"#{fetch(:bundle_prefix)} rake\" }\r\n\r\n```\r\n"}}
{"actor":{"display_login":"hendricius"}}