我正在尝试使用Capistrano 3将代码从GIT存储库部署到Ubuntu服务器,但我收到此错误.
================================================== ========================
这是我的Gemfile.
gem 'capistrano', '~> 3.1.0'
#//Use unicorn as the app server
gem 'unicorn'
#// Use Capistrano for deployment
group :development do
gem 'capistrano-rails'
gem 'capistrano-bundler'
gem 'capistrano-rbenv', "~> 2.0"
end
source 'https://rubygems.org'
Run Code Online (Sandbox Code Playgroud)
================================================== ========================#deploy.rb
lock '3.1.0'
#// Define the name of the application
set :application, 'my_app'
#// Define where can Capistrano access the source repository
#// set :repo_url, 'https://github.com/[user name]/[application name].git'
set :scm, :git
set :repo_url, 'git@github.com:jaipratik/rw.git'
set :use_sudo, true
set :log_level, :debug
#// Define where …Run Code Online (Sandbox Code Playgroud) 我已经与Capistrano一起部署超过一年并且能够回滚,现在突然间我无法回滚说它无法找到rake资产文件
Capistrano Rollback没有抱怨它无法找到我验证的rake资产清单.什么创造了这个,为什么它会停止创造?
我已经把头发拉出来好几天了,我正在弄清楚如何破解掉那部分回滚并手动重新编译资产.
rvm 1.27.0 (latest) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
ruby-2.3.3
ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-linux]
00:00 deploy:shutdown_god
01 sudo service god stop
? 01 quotr@SpottingQuotes.ca 1.404s
00:01 deploy:fix_tmp_permissions
01 sudo chown -R quotr:app /home/quotr/app/releases
? 01 quotr@SpottingQuotes.ca 3.636s
removing existing local assets
00:05 git:wrapper
01 mkdir -p /tmp
? 01 quotr@SpottingQuotes.ca 0.214s
Uploading /tmp/git-ssh-Quotr-staging-brandon.sh 100.0%
02 chmod 700 /tmp/git-ssh-Quotr-staging-brandon.sh
? 02 quotr@SpottingQuotes.ca 0.184s
00:05 git:check
01 git ls-remote git@github.com:XXChester/quotr.git …Run Code Online (Sandbox Code Playgroud) 构建允许以下内容的正则表达式语句:
expected_to_pass = ['testa', ' test a', 12342, 1.234, 'test a']
expected_to_fail = [' test', 'test ', ' test ', ' ', 1234, 0.1, ' ','12345678901']
Run Code Online (Sandbox Code Playgroud)
允许 5-10 个非空白字符:
[\S]{5,10}$
Run Code Online (Sandbox Code Playgroud)
无论空格如何,都允许 5-10 个字符:
[\s\S]{5,10}$
Run Code Online (Sandbox Code Playgroud)
我已经放屁了几个小时,想不出最好的方法来处理这个问题。