Ruby on rails capistrano:cp-无法统计
我正在尝试部署errbit(),但无法让capistrano在远程服务器上编译资产。 看起来它在创建清单路径时添加了一些乱七八糟的东西,我真的不知道在哪里可以修复它 这是Capistrano的输出Ruby on rails capistrano:cp-无法统计,ruby-on-rails,capistrano,sprockets,errbit,Ruby On Rails,Capistrano,Sprockets,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 exis
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
我看不出这里有什么问题
有人能帮我吗?为我修正:捆绑包更新capistrano
在deploy.rb中更改
设置:pty,true
到
设置:pty,false
已为我修复:捆绑包更新capistrano
在deploy.rb中更改
设置:pty,true
到
set:pty,false
您是否使用类似的方式,可以显示带有隐藏文件的主文件夹~/
的内容?'\033[?25h\033[0G\033[K\033[?25h\033[0G\033][K
是bash控制代码,您在env vars中使用过颜色吗?我使用的是rvm,我添加的唯一文件是.ruby version和.ruby gemset,它们的内容是“2.3.0”还有gemset的名称。@МаъСъСъъъъъ也许,我认为这都是关于bash登录的,看起来远程shell试图做些什么,但由于错误重定向而失败。我遇到了同样的问题,那就是节点版本管理器和.nvmrc
文件。请确保目录/home/deployer/apps/errbit
存在于要部署到的服务器如果要使用以下内容,可以显示带有隐藏文件的主文件夹的内容吗?'\033[?25h\033[0G\033[K\033[?25h\033[0G\033][K
是bash控制代码,您在env vars中使用过颜色吗?我使用的是rvm,我添加的唯一文件是.ruby version和.ruby gemset,它们的内容是“2.3.0”还有gemset的名称。@МаъСъСъъъъъ也许,我认为这都是关于bash登录的,看起来远程shell试图做些什么,但由于错误重定向而失败。我遇到了同样的问题,那就是节点版本管理器和.nvmrc
文件。请确保目录/home/deployer/apps/errbit
存在于要部署到的服务器