我试着把 Vue 引入 Rails 项目,用 Mina deploy 现在会出错误,是 deploy.rb 的配置问题吗?
task :deploy do
deploy do
comment "Deploying #{fetch(:application_name)} to #{fetch(:domain)}:#{fetch(:deploy_to)}"
command %{ssh-agent}
command %{rvm use 2.4}
# command %{gem install bundler}
invoke :'git:clone'
invoke :'deploy:link_shared_paths'
# invoke :'rvm:load_env_vars'
invoke :'bundle:install'
invoke :'rails:db_migrate'
# command %{bundle exec rails db:migrate RAILS_ENV=production}
# command %{#{fetch(:rails)} db:seed}
command %{#{fetch(:rails)} webpacker:install:vue}
invoke :'rails:assets_precompile'
invoke :'deploy:cleanup'