Tag: 部署

如何将CKEditor与Heroku集成?

这有点棘手,因为Heroku在他们的Dyno Grid中使用只读文件系统。 这意味着当尝试远程安装ckeditor时,我收到一个错误: heroku rake db:migrate rake aborted! Read-only file system – /disk1/home/slugs/362142_8858805_b85c-f2f3955d-f087-4bc4-8b1b-b6e898403a10/mnt/public/javascripts/ckcustom.js ckcustom.js是一个配置文件,用于管理ckeditor的元设置。 我想知道是否有其他人有这些麻烦,他们做了什么来绕过他们?

在git push之后,Heroku没有看到我的变化

我正在尝试将我的应用程序的新版本部署到heroku,虽然在本地运行它,但在执行以下操作后,我看不到任何更改: git push heroku master 然后 heroku run rake db:migrate 似乎没有效果。 这很奇怪,因为没有模型更改,我只能使用git push命令部署更改。 有什么想法吗?

生产环境变量

我目前正在亚马逊上部署我的Rails应用程序,我遇到了环境变量的问题。 我在开发和测试中使用dotenv gem,它在尝试访问我的环境变量时工作正常,但在生产中它似乎不起作用。 我读到dotenv gem并不适用于制作。 我必须设置近20个不同的环境变量,包括API密钥等,我正在使用rubber / capistrano进行部署。 我怎样才能以干净的方式工作?

shared_children在Capistrano 3工作

我在deploy.rb有以下deploy.rb : set :upload_dirs, %w(public/pictures) set :shared_children, (fetch(:shared_children) || []) + fetch(:upload_dirs) 这似乎是允许我共享公共目录的建议方法。 public/pictures目录存在,并在存储库中以空方式检查。 我试图在存储库中也没有它,但它无论如何都没有用。 当我使用capistrano进行部署时,我看不到public/pictures目录出现在我的部署位置的任何位置。 此function是否已从Capistrano 3中删除? Capistrano 3是否有明确的文档来源? 我能找到的全部是Capistrano 2文档和v3非常稀缺的信息来源。

Heroku记录FATAL SignalException:SIGTERM

我不明白为什么我要提出这个致命的例外 。 它在localhost运行得很好。 我知道SIGTERM只是一个终止程序的信号,我不相信解决方案是处理或忽略它。 当我查看部署的网站时,它显示为白页。 如何修复此错误,以便我的应用程序可以正常显示? 这是我的Heroku日志: 2014-04-23T20:59:57.995734+00:00 app[web.1]: /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:170:in `block in start’ 2014-04-23T20:59:57.995789+00:00 app[web.1]: /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:32:in `start’ 2014-04-23T20:59:57.995875+00:00 app[web.1]: /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:160:in `start’ 2014-04-23T20:59:57.995933+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler/webrick.rb:14:in `run’ 2014-04-23T20:59:57.995988+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:264:in `start’ 2014-04-23T20:59:57.996042+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.4/lib/rails/commands/server.rb:84:in `start’ 2014-04-23T20:59:57.996552+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.4/lib/rails/commands.rb:71:in `’ 2014-04-23T20:59:57.996843+00:00 app[web.1]: [2014-04-23 20:59:57] INFO WEBrick::HTTPServer#start done. 2014-04-23T20:59:57.996932+00:00 app[web.1]: Exiting 2014-04-23T20:59:57.996466+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.4/lib/rails/commands.rb:71:in `tap’ 2014-04-23T20:59:57.996333+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.4/lib/rails/commands.rb:76:in `block […]

在Heroku上部署 – 上传后图像消失

我在Heroku上部署了一个应用程序,我在Ruby on Rails上编写了这个应用程序。 这是一个电影评论应用程序。 我可以将计算机上传的图像上传到网络应用程序。 其他一切都按照我的期望运作。 一天后图像消失。 我的要求是让图像继续渲染。 我正在使用来自rails的Paperclip gem。 这仅发生在已部署的版本上,而不是在localhost上。

NoMethodError:在tomcat上部署rails app时的relative_url_root

我试着按照本教程在tomcat上部署我的jruby应用程序,但它始终以: — Backtrace NoMethodError: undefined method `relative_url_root=’ for ActionController::Base:Class send at org/jruby/RubyKernel.java:2097 尝试使用tomcat 6和7。 我的jruby版本是1.6.5,我使用Rails 3.1(太新鲜了?) 谢谢你的帮助

Rails 3.1部署到Heroku错误

我正在尝试将我的应用程序部署到Heroku,我之前已经在我的Windows机器上完成了这个,现在我正在使用mac。 我第一次尝试使用Postgresql。 我的Gemfile中有以下内容: gem ‘pg’ 编辑: AndrewDavis-OSX:lunchbox ardavis$ rvm list rvm rubies => ruby-1.9.2-p180 [ x86_64 ] AndrewDavis-OSX:lunchbox ardavis$ heroku rake db:migrate rake aborted! /app/config/initializers/session_store.rb:3: syntax error, unexpected ‘:’, expecting $end App::Application.config.session_store :cookie_store, key: ‘_app_session’ ^ (See full trace by running task with –trace) (in /app) 如你所见,我正在运行ruby 1.9.2。 我的heroku迁移有错误。 编辑2: 刚刚使用Rails 3.1.rc1创建了一个全新的rails应用程序。 我将gemfile设置为include 组:制作做gem’therubyracer-heroku’,’0.8.1.pre3’gemite’pg’结束 我做了一个快速的git […]

Capistrano:my.server.ipadress上不存在链接文件database.yml

在我尝试通过capistrano将我的应用程序部署到我的服务器后,我收到以下错误消息: DEBUG [605f198a] Finished in 0.084 seconds with exit status 1 (failed). ERROR linked file /home/deploy/myrailsapp/shared/config/database.yml does not exist on xx.xxx.xx.xxx (Backtrace restricted to imported tasks) cap aborted! SSHKit::Runner::ExecuteError: Exception while executing as deploy@xx.xxx.xx.xxx: exit SystemExit: exit Tasks: TOP => deploy:check:linked_files (See full trace by running task with –trace) The deploy has failed with an […]

致命:无法读取“https://github.com”的用户名:没有此类设备或地址

我已经使用github和capistrano将我的Rails 4应用程序部署到Rackspace几周了。 一切正常,直到我最终使我的存储库私有化。 现在,我在运行’cap deploy’后收到以下错误: “致命:无法读取’ https://username@github.com ‘的密码:没有这样的设备或地址” 下面是我的deploy.rb文件中的代码 set :application, “appname” set :repository, “https://git_username@github.com/git_username/appname.git” set :scm, :git set :scm_username, “git_username” set :scm_passphrase, “git_password” set :scm_command, “git” set :keep_releases, 5 set :branch, “master” set :rails_env, “production” set :deploy_to, “/var/www/doLocal” set :user, “deployer” set :password, “deployer_password” set :use_sudo, false ssh_options[:forward_agent] = true server “/path/to/server”, :app, :web, […]