新手问题 mina 自动化部署出现错误

Allen_hui · May 16, 2019 · Last by rails_taotao replied at May 17, 2019 · 1210 hits

拿源代码,换了一台服务器部署,mina setup 然后配置好 databases.yml。。。等等文件后,运行 mina deploy,报一下错误是什么原因?

Gems in the groups development and test were not installed.
Bundled gems are installed into `./vendor/bundle`
-----> Migrating database
rake aborted!
Errno::EEXIST: File exists @ dir_s_mkdir - public/upload
/var/www/xxxxx.com/tmp/build-155800310414334/vendor/bundle/ruby/2.3.0/gems/shrine-2.6.1/lib/shrine/storage/file_system.rb:120:in `initialize'
/var/www/xxxxx.com/tmp/build-155800310414334/config/initializers/shrine.rb:6:in `new'
/var/www/xxxxx.com/tmp/build-155800310414334/config/initializers/shrine.rb:6:in `<top (required)>'
......
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
! ERROR: Deploy failed.
-----> Cleaning up build
Unlinking current

求指导

是不是没有生成 public/upload 共赏文件夹

set :shared_dirs, fetch(:shared_dirs, []).push('tmp', 'log', 'public/uploads','public/packs','storage')
set :shared_files, fetch(:shared_files, []).push('config/database.yml', 'config/master.key','config/webpacker.yml')

You need to Sign in before reply, if you don't have an account, please Sign up first.