ruby on rails - WARN [SKIPPING] No Matching Host for /usr/bin/env touch /srv/yenta/releases/20140411230746/tmp/restart.txt -


i using capistrano 3. don't have tmp/restart.txt file in rails 4.0 app. when deploy app, receive error:

warn [skipping] no matching host /usr/bin/env touch /srv/yenta/releases/20140411230746/tmp/restart.txt 

in deployed server, app doesn't have tmp/restart.txt. wonder whether should create task explicitly, or if missing settings in capistrano. in capistrano 2, i'd create task explicitly touch tmp/restart.txt file instead.

any appreciated!

this issue stems not defining particular role - code using :app role without role being defined, led host not found problem.

deploy.rb

desc 'restart application' task :restart   on roles(:app), in: :sequence, wait: 5     # restart mechanism here, example:     execute :touch, current_path.join('tmp/restart.txt')   end end 

deploy/staging.rb

role  :web,       "qa4-yenta" set   :deploy_to, "/srv/yenta" set   :rails_env, "staging" set   :user,      "yenta" set   :use_sudo,  false set   :branch,    "staging" set   :deploy_via, :remote_cache 

the :app role needs changed :web, or :app role needs defined.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -