我是Rails的新手,我试图将一个非常简单的应用程序部署到Heroku.这是我部署的第二个应用程序,第一个我能够做到这一点就好了.但是我遇到了一些问题.每当我" git push heroku master "时,我都会收到此错误:
!你的密钥有指纹xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx无权访问my_heroku_app.
致命:远程端意外挂断
我在登录heroku后尝试管理我的密钥.如果我输入我的控制台" heroku keys ",那么我得到:
myemailaddress没有钥匙.
但是,如果我运行命令" heroku keys:add ",我会得到
找到现有公钥:/Users/michele/.ssh/id_rsa.pub上传ssh公钥/Users/michele/.ssh/id_rsa.pub!指纹已经存在.请为每个Heroku帐户使用一个ssh密钥
请帮我!这太令人沮丧了,我不知道出了什么问题!谢谢
我刚刚开始学习Ruby on rails,我想知道Heroku究竟是什么?我知道它的云可以帮助我们避免使用服务器吗?我们什么时候实际使用它?
我有一个RoR应用程序在我的本地计算机上工作,但当我将它发送到heroku时,它崩溃了.错误日志给出错误H10并说:
2012-11-21T15:26:47+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.4.2/lib/new_relic/control/instance_methods.rb:95:in `start_agent'
2012-11-21T15:26:48+00:00 heroku[web.1]: State changed from starting to crashed
2012-11-21T15:26:48+00:00 heroku[web.1]: Process exited with status 1
2012-11-21T15:26:59+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=xxx.herokuapp.com fwd= dyno= queue= wait= connect= service= status=503 bytes=
2012-11-21T15:27:00+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=xxx.herokuapp.com fwd= dyno= queue= wait= connect= service= status=503 bytes=
2012-11-21T15:30:08+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=xxx.herokuapp.com fwd= dyno= queue= wait= connect= service= status=503 bytes=
2012-11-21T15:30:08+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico …
Run Code Online (Sandbox Code Playgroud) 我已经开始与一些项目的朋友合作,他们使用heroku git存储库.
我几天前克隆了存储库,他们已经做了一些更改,所以我试图获取最新的更新
我运行了git pull --rebase
这里所说的命令(这是正确的方法吗?):https://devcenter.heroku.com/articles/sharing#merging-code-changes
我收到以下错误:
$ git pull --rebase
Cannot pull with rebase: You have unstaged changes.
Please commit or stash them.
Run Code Online (Sandbox Code Playgroud)
我的猜测是我搞乱了代码,现在它要么我要么提交要么丢弃(存储意味着什么?)这些变化.这是发生了什么?如果是这种情况,我想放弃我可能做出的任何更改,只是从git存储库中获取更新的代码.
知道我能做什么吗?
我有一个rails应用程序,其数据库在SQLite(开发和生产).由于我要转移到heroku,我想将我的数据库转换为PostgreSQL.
无论如何,我听说本地的开发数据库不需要从SQLite更改,所以我不需要改变它,但是,如何将生产环境从SQLite更改为PostgreSQL?
有没有人曾经这样做过,可以帮忙吗?
PS我不确定这个过程到底是什么,但我听说过将数据库从SQLite迁移到PostgreSQL,需要做什么?
我正在尝试更新基于Cedar的Heroku应用程序中的httpd.conf.我得到了我的Heroku bash
heroku run bash
Run Code Online (Sandbox Code Playgroud)
并在apache下找到了conf dir.但是当我尝试打开任何编辑器vi,vim或emacs时,我找不到任何这些程序.你如何在Heroku上编辑conf文件?
我有一个使用Serve的项目,并使用Git进行版本控制.Serve创建一个output
包含我想要部署到Heroku的静态文件的文件夹.
我不想部署Serve项目本身,因为Heroku Cedar堆栈似乎不太喜欢它,但最重要的是我想利用Heroku对静态网站的大力支持.
有没有办法将子文件夹部署到git远程?我应该在output
文件夹中创建一个Git仓库(听起来不对)并将其推送到Heroku?
我正在使用Rails 3.1.3创建一个Rails应用程序:
git init
git remote add heroku <my heroku repo>
git add .
git commit -a -m "First commit"
git push heroku master
Run Code Online (Sandbox Code Playgroud)
拿到:
Counting objects: 102, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (86/86), done.
Writing objects: 100% (102/102), 315.47 KiB, done.
Total 102 (delta 3), reused 0 (delta 0)
**-----> Heroku receiving push
! Heroku push rejected, no Cedar-supported app detected**
To git@heroku.com:electric-dusk-3217.git
! [remote rejected] master -> master (pre-receive hook declined)
error: …
Run Code Online (Sandbox Code Playgroud) 我想通过GoDaddy获得一个域名来与我的Heroku托管网站一起工作.
如何配置我的域名以使用Heroku?
我越来越类似于那些错误的 这些 问题,除了我的是上发生的Heroku:
2011-05-30T09:03:29+00:00 heroku[worker.1]: Starting process with command: `rake jobs:work`
2011-05-30T09:03:30+00:00 app[worker.1]: (in /app)
2011-05-30T09:03:30+00:00 heroku[worker.1]: State changed from starting to up
2011-05-30T09:03:33+00:00 app[worker.1]: rake aborted!
2011-05-30T09:03:33+00:00 app[worker.1]: uninitialized constant Rake::DSL
2011-05-30T09:03:33+00:00 app[worker.1]: /app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.0/lib/rake/tasklib.rb:8:in `<class:TaskLib>'
Run Code Online (Sandbox Code Playgroud)
这些问题的答案似乎是要指定,gem 'rake', '0.8.7'
因为0.9版本会导致问题.
当我尝试添加gem 'rake', '0.8.7'
到我的gemfile并推送到Heroku时,我收到此错误:
Unresolved dependencies detected; Installing...
You have modified your Gemfile in development but did not check
the resulting snapshot (Gemfile.lock) into version control
You have added to the Gemfile:
* rake …
Run Code Online (Sandbox Code Playgroud) heroku ×10
git ×3
database ×1
deployment ×1
dns ×1
git-push ×1
postgresql ×1
pull ×1
rake ×1
sqlite ×1
ssh ×1
text-editor ×1