我尝试部署errbit(https://github.com/errbit/errbit),并且无法获得capistrano来编译远程服务器上的资产。 它似乎在没有任何理由的情况下添加一些乱码,当它创建清单路径时,我真的不知道在哪里修复它...
这是Capistrano输出
01 /usr/local/rvm/bin/rvm 2.3.0 do bundle exec rake assets:precompile
01 Notice: no rspec tasks available in this environment
01 Overwriting existing field _id in class App.
01 Creating scope :page. Overwriting existing method NotificationServices…
✔ 01 deployer@000.000.000.000 2.336s
00:22 deploy:assets:backup_manifest
01 mkdir -p /home/deployer/apps/errbit/releases/20160426123255/assets_man…
01
✔ 01 deployer@000.000.000.000 0.330s /home/deployer/apps/errbit/releases/20160…
02
02 cp: cannot stat ‘\033[?25h\033[0G\033[K\033[?25h\033[0G\033[K/home...
02 : No such file or directory
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as deployer@000.000.000.000: cp exit status: 1
cp: cannot stat ‘\033[?25h\033[0G\033[K\033[?25h\033[0G\033[K/home/deployer/apps/errbit/releases/20160426123255/public/assets/.sprockets-manifest-cd1becb3ebe39b1efd086cd82910b5dd.json’: No such file or directory
cp stderr: Nothing written
SSHKit::Command::Failed: cp exit status: 1
cp: cannot stat ‘\033[?25h\033[0G\033[K\033[?25h\033[0G\033[K/home/deployer/apps/errbit/releases/20160426123255/public/assets/.sprockets-manifest-cd1becb3ebe39b1efd086cd82910b5dd.json’: No such file or directory
cp stderr: Nothing written
Tasks: TOP => deploy:assets:backup_manifest
(See full trace by running task with --trace)
The deploy has failed with an error: Exception while executing as deployer@000.000.000.000: cp exit status: 1
cp: cannot stat ‘\033[?25h\033[0G\033[K\033[?25h\033[0G\033[K/home/deployer/apps/errbit/releases/20160426123255/public/assets/.sprockets-manifest-cd1becb3ebe39b1efd086cd82910b5dd.json’: No such file or directory
cp stderr: Nothing written
正如您在/ home / deployer之前所看到的,我有一些无法理解的随机字符。
我认为唯一可以做的事就是deploy_to指令:
set :deploy_to, '/home/deployer/apps/errbit'
这是我的Gemfile.lock
https://gist.github.com/ngw/1157a005ff7f6077b9f5b232b0371a76
我在这里无法看到问题。
有人可以帮助我吗?
答案 0 :(得分:0)
为我修好:
bundle update capistrano
在deploy.rb中更改
set :pty, true
到
set :pty, false