Tag: 部署

操作超时 – 连接(2)(Errno :: ETIMEDOUT)

我正在尝试在heroku上部署我的rails应用程序。 我用了这个命令 heroku运行rake db:migrate 我收到以下错误 运行rake db:migrate连接到终端…… up,run.2846! Heroku客户端内部错误。 ! 在以下url搜索帮助: https : //help.heroku.com ! 或者在以下url报告错误: https : //github.com/heroku/heroku/issues/new Error: Operation timed out – connect(2) (Errno::ETIMEDOUT) 昨天我尝试了相同的命令它完美地工作。

Heroku部署Gemfile.lock问题

我对整个部署事情都很陌生。 在我第一次创建应用程序之前,我已经部署了一次应用程序,然后一切似乎都运行正常。 我现在对我的应用程序进行了一些更改,我想部署它们并确保它们在生产环境中工作。 我添加并提交了我的最后一项更改,并将我的更改合并到我的主分支中。 然后我跑了git push heroku master 。 我在输出中收到以下错误: Gemfile detected, running Bundler version 1.0.7 Unresolved dependencies detected; Installing… Using –without development:test You have modified your Gemfile in development but did not check the resulting snapshot (Gemfile.lock) into version control 好的,所以我需要更新我的gemfile。 首先,我检查了我的.gitignore文件的内容,它们是: .bundle db/*.sqlite3* log/*.log *.log /tmp/ doc/ *.swp *~ .project .DS_Store .psd Gemfile.lock似乎不在那里,但无论如何我尝试了以下内容: […]

Rails Capistrano 3 – 如何将production.log文件共享到Capistrano的共享文件夹中?

我正在使用Capistrano 3与我的Rails应用程序进行部署。 问题是每次我将我的应用程序部署到服务器时都会重置./log/production.log文件。 我听说可以将production.log文件放入共享文件夹并在每个部署中附加。 我认为这是由Capistrano默认制作但显然不适合我:( 有什么想法吗? 谢谢!

Rails应用程序在Heroku上崩溃但在本地运行正常 – >“状态从开始变为崩溃”

repo at:git@github.com:assafshomer / sample_app.git 这个应用程序是我的学习应用程序基于迈克尔哈特尔出色的铁路教程。 应用程序在开发中运行顺畅,测试套件全部为绿色 部署到Heroku时,我立即得到以下错误:“应用程序错误。应用程序中发生错误,无法提供您的页面” 升级到Rails4之后问题就开始了(但我知道问题不在于Rails4本身,因为例如git://github.com/railstutorial/sample_app_rails_4.git可以很好地部署到Heroku) 我知道你会问“你在Heroku上迁移了数据库吗?”。 我做到了。 我甚至运行pg:reset然后再次在Heroku上运行db:migrate以防万一。 他们似乎运行正常。 Heroku日志也不提供任何信息(至少,我认为没有任何用处) 2013-05-25T22:11:26.070468+00:00 heroku[web.1]: Process exited with status 0 2013-05-25T22:11:26.083572+00:00 heroku[web.1]: State changed from starting to crashed 2013-05-25T22:13:09.372294+00:00 heroku[run.4121]: State changed from up to complete 2013-05-25T22:13:09.357146+00:00 heroku[run.4121]: Process exited with status 1 2013-05-25T22:13:50.829887+00:00 heroku[router]: at=error code=H10 desc=”App crashed” method=GET path=/ host=devsampleapp.herokuapp.com fwd=”93.172.16.63″ dyno= connect= […]

在Engine Yard上设置环境变量

我的应用程序是在Engine Yard服务上,我需要设置环境变量以使用我的秘密ID和密码。 有人知道如何设置每个变量? 做这个的最好方式是什么?

Capistrano bitbucket – 权限被拒绝(publickey)

我正在尝试使用Capistrano将我的应用程序部署到我的DigitalOcean服务器上。 这不是我第一次使用Capistrano在DigitalOcean上配置RoR服务器,这就是为什么我感到困惑; 我的工作流程没有改变任何内容。 这是我的Capistrano配置文件: require ‘bundler/capistrano’ require ‘rvm/capistrano’ set :application, “foobar” set :repository, “git@bitbucket.org:sergiotapia/foobar.git” set :ping_url, “http://192.168.1.1/” set :scm, :git set :scm_verbose, true default_run_options[:pty] = true set :user, “sergiotapia” # The user on the VPS server. set :password, “hunter2” set :use_sudo, false set :deploy_to, “/home/sergiotapia/www/#{application}” set :deploy_via, :remote_cache set :keep_releases, 1 set :rails_env, “production” set […]

在使用capistrano和svn部署rails时,在哪里放置app-config-files

我有两个配置文件 /app/config/database.yml 和 /app/config/userconfig.yml 我不想将数据库凭据和userconfig放在svn-repository中,所以我签入了database.yml.dist和userconfig.yml.dist。 在第一次部署应用程序时,在共享目录中获取dist文件的copys的最佳方法是什么? 对于以后的部署,我将从/ app / current / config链接到它们

Rails 4 + Capistrano 3:致命:部署时无法从远程存储库读取

我在使用Capistrano 3部署Rails 4应用程序时遇到以下错误 INFO [87512eb8] Running /usr/bin/env chmod +x /tmp/magnificent/git-ssh.sh as deploy@104.236.6.180 DEBUG [87512eb8] Command: /usr/bin/env chmod +x /tmp/magnificent/git-ssh.sh INFO [87512eb8] Finished in 0.444 seconds with exit status 0 (successful). INFO [1ec94dd1] Running /usr/bin/env git ls-remote –heads git@github.com:BoTreeConsultingTeam/magnificent.git as deploy@104.236.6.180 DEBUG [1ec94dd1] Command: ( GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/magnificent/git-ssh.sh /usr/bin/env git ls-remote –heads git@github.com:BoTreeConsultingTeam/magnificent.git ) DEBUG [1ec94dd1] ERROR: […]

为什么我得到无法在任何来源中找到multi_json-1.3.1?

我有一个简单的Rails应用程序,我想部署到Heroku。 当我运行以下命令 git push heroku master 将显示以下错误消息。 Could not find multi_json-1.3.1 in any of the sources ! ! Failed to install gems via Bundler. ! ! Heroku push rejected, failed to compile Ruby/rails app 这是我的Gemfile gem ‘rails’, ‘3.2.3’ gem ‘pg’ group :assets do gem ‘sass-rails’, ‘~> 3.2.3’ gem ‘coffee-rails’, ‘~> 3.2.1’ gem ‘therubyracer’, :platform => […]

什么用户正在运行我的Rails应用程序?

我正试图在Apache,Passenger 3.0.0和Rails 3.0.3下部署一个简单的Rails应用程序。 我遇到了各种奇怪的错误。 主要围绕我认为与bundler或RAILS_ENV相关的内容。 关于应用程序,只有非默认的事情是开发和测试环境使用SQLite3,生产使用MySQL。 当从Web浏览器访问应用程序时,Passenger会抛出有关gems(sqlite3)的错误,这些错误是(在Gemfile和database.yml中)声明为非生产环境的一部分。 如何判断服务器尝试运行我的Rails应用程序的用户是什么? 我想确保为该用户正确设置RAILS_ENV,因为我认为Passenger因某种原因试图在开发模式下运行此应用程序。 编辑:添加了ps aux | grep httpd结果 ps aux | grep httpd myserver:current elvis$ ps aux | grep httpd elvis 4424 0.4 0.0 66152 192 s000 S+ 11:03AM 0:00.00 grep httpd _www 1950 0.0 0.2 93024 2544 ?? S 11:40PM 0:01.23 /usr/sbin/httpd -D FOREGROUND root 1918 0.0 1.0 […]