首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Rails 5 capistrano资产

Rails 5 capistrano资产
EN

Stack Overflow用户
提问于 2016-08-29 18:06:55
回答 1查看 1.1K关注 0票数 3

我只使用rails 5 api,只使用应用程序。当我试图部署这个应用程序时,会出现错误

代码语言:javascript
复制
Tasks: TOP => deploy:assets:precompile
(See full trace by running task with --trace)
The deploy has failed with an error: Exception while executing as deploy@xxx.xxx.xxx: rake exit status: 1
rake stdout: Nothing written
rake stderr: rake aborted!
Don't know how to build task 'assets:precompile' (see --tasks)
/home/deploy/applications/myrento/shared/bundle/ruby/2.3.0/gems/rake-11.2.2/exe/rake:27:in `<top (required)>'
/home/deploy/.rbenv/versions/2.3.1/bin/bundle:23:in `load'
/home/deploy/.rbenv/versions/2.3.1/bin/bundle:23:in `<main>'
(See full trace by running task with --trace)

如何关闭deploy:assets:预编译任务?

这是我的Capfile

代码语言:javascript
复制
require "capistrano/setup" 
require "capistrano/deploy" 
require "capistrano/rbenv" 
require "capistrano" 
require "capistrano/rails" 
require "capistrano/bundler" 
require "capistrano/postgresql" 
require "capistrano/puma" 
Dir.glob("lib/capistrano/tasks/*.rake").each { |r| import r }
EN

回答 1

Stack Overflow用户

发布于 2016-08-29 18:17:15

要删除资产编译,可以删除以下内容:

代码语言:javascript
复制
require "capistrano/rails"

再加上,

代码语言:javascript
复制
require 'capistrano/rails/migrations'
票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39212475

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档