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

Allen_hui · 2019年05月16日 · 最后由 rails_taotao 回复于 2019年05月17日 · 1217 次阅读

拿源代码,换了一台服务器部署,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')

需要 登录 后方可回复, 如果你还没有账号请 注册新账号