我希望我可以使用条件进行.ebextensions配置,但我不知道如何使用它,我目前的情况是:
.ebextensions配置内容之一是创建一个文件夹,实际上是必须创建的文件夹只有一次,因为如果我第二次或更多次部署应用程序我就会出错,并且错误说"文件夹已经存在" .
所以我需要给出条件,如果文件夹已经存在,则不必再次运行创建文件夹的命令.
如果有人对如何实现这一点有任何见解或指导,我将不胜感激.谢谢!
有人在运行后遇到此错误:
cap production deploy
Run Code Online (Sandbox Code Playgroud)
我正在使用capistrano:Capistrano版本:3.6.1(耙子版本:11.3.0)
这是日志:
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as deploy@54.169.99.36: rake exit status: 1
rake stdout: rake aborted!
Don't know how to build task 'assets:precompile' (see --tasks)
/home/deploy/microwave-api/shared/bundle/ruby/2.3.0/gems/rake-11.3.0/exe/rake:27:in `<top (required)>'
.
.
.
/home/deploy/.rvm/gems/ruby-2.3.0/gems/bundler-1.13.6/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/home/deploy/.rvm/gems/ruby-2.3.0/gems/bundler-1.13.6/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/home/deploy/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `<main>'
(See full trace by running task with --trace)
rake stderr: Nothing written
SSHKit::Command::Failed: rake exit status: 1
rake stdout: rake aborted!
Don't know how to build task 'assets:precompile' (see --tasks)enter code here
Run Code Online (Sandbox Code Playgroud) 我希望自动构建,测试,部署和发布rails应用程序.
有什么方法可以做到吗?