简体   繁体   English

Windows计算机上的Capistrano部署

[英]Capistrano deployment on Windows machine

I have been trying to deploy a rails application using capistrano. 我一直在尝试使用capistrano部署Rails应用程序。 However I am not able to reach the end of deployment and there is no way to figure out why. 但是,我无法完成部署,因此无法找出原因。 The script returns an error code 256 and stops at the following line in the deploy script 该脚本返回错误代码256,并在部署脚本中的以下行停止

Command bundle exec rake assets:clean && EXECJS_RUNTIME='Node' JRUBY_OPTS='-J-d32 -X-C' bundle exec rake            assets:precompile returned status code 256

There is no more explanation to it. 没有更多的解释了。 Has anybody faced the similar issue while deploying on windows? 在Windows上部署时,有人遇到过类似的问题吗?

You should provide more information on the context of your situation. 您应该提供有关您的情况的更多信息。 For instance, show the relevant code from your deploy.db file. 例如,显示您deploy.db文件中的相关代码。 That could tell us more about a possible problem source. 那可以告诉我们更多关于可能的问题来源的信息。

As a tip, when facing capistano deploying bugs, use the debugging flag to get more verbose output, and step through the process. 提示,当遇到capistano部署错误时,请使用debug标志获取更多详细输出,并逐步完成该过程。

    cap deploy:cold -d

Anywho... I was facing a similar problem, while optimizing my capistrano deploying times. 任何人...在优化我的capistrano部署时间的同时,我也面临着类似的问题。 In case you only want to modify your assets:precompile task, to include your EXECJS_RUNTIME and JRUBY_OPTS custom values, you could try doing this. 如果您只想修改asset:precompile任务以包含EXECJS_RUNTIME和JRUBY_OPTS自定义值,则可以尝试执行此操作。

    set :jruby_opts, "-X-C"
    set :asset_env, "RAILS_GROUPS=assets EXECJS_RUNTIME='Node'"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM