You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$HOME/.rbenv/bin/rbenv exec bundle exec rails webpacker:clobber
(Backtrace restricted to imported tasks)
cap aborted!
Errno::ENOENT: No such file or directory - ( export RBENV_ROOT="$HOME/.rbenv" RBENV_VERSION="2.5.5" RAILS_ENV="production" RBENV_ROOT="$HOME/.rbenv" RBENV_VERSION="2.5.5" RAILS_ENV="production" ; $HOME/.rbenv/bin/rbenv exec bundle exec rails webpacker:clobber )
Tasks: TOP => webpacker:precompile
(See full trace by running task with --trace)
The deploy has failed with an error: No such file or directory - ( export RBENV_ROOT="$HOME/.rbenv" RBENV_VERSION="2.5.5" RAILS_ENV="production" RBENV_ROOT="$HOME/.rbenv" RBENV_VERSION="2.5.5" RAILS_ENV="production" ; $HOME/.rbenv/bin/rbenv exec bundle exec rails webpacker:clobber )
This is my deploy.rb file:
lock "~> 3.11.0"
set :application, "myapp"
set :repo_url, "git@github.com:githubusername/myapp.git"
# Deploy to the user's home directory
set :deploy_to, "/home/deploy/#{fetch :application}"
append :linked_dirs, 'log', 'tmp/pids', 'tmp/cache', 'tmp/sockets', 'vendor/bundle', '.bundle', 'public/system', 'public/uploads'
# Only keep the last 5 releases to save disk space
set :keep_releases, 5
set :default_env, {
RBENV_ROOT: "$HOME/.rbenv",
RBENV_VERSION: "2.5.5" ,
RAILS_ENV: "production"
}
before "deploy:assets:precompile", "deploy:yarn_install"
namespace :deploy do
desc 'Run rake yarn:install'
task :yarn_install do
on roles(:web) do
within release_path do
execute("cd #{release_path} && yarn install")
end
end
end
end
namespace :env do
desc 'Print enviroment variables'
task :env do
on roles(:all) do
execute "env"
end
end
end
after 'deploy:updated', 'webpacker:precompile'
I also have a file in server /home/deploy/myapp/.rbenv and /home/deploy/myapp/.rbenv-vars that contain:
Tasks: TOP => webpacker:precompile isn't provided by https://github.com/capistrano/capistrano and seems to be doing the wrong thing when using "advanced" settinghs as you are doing.
The message indicates that they are trying to execute a "string" when they should be trying to execute an array of arguments, I think, but this isn't a https://github.com/capistrano/capistrano problem, I'm quite sure.
I'll leave this issue open whilst you report upstream to your webpacker:precompile vendor, you can link them this ticket.
I run
cap production deploy
and got this error:This is my deploy.rb file:
I also have a file in server /home/deploy/myapp/.rbenv and /home/deploy/myapp/.rbenv-vars that contain:
What is the solution?
The text was updated successfully, but these errors were encountered: