问题标签 [heroku-toolbelt]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
postgresql - Heroku 上的 Postgres 并将单个表转储到转储文件
我在 Heroku 上使用 Postgres,需要从我的生产数据库中转储一个表并将其转储到我的暂存数据库中。我安装了 heroku 工具带,但不知道如何转储单个数据库表以导入我的暂存数据库。
heroku - 提交 heroku - 不是 git 存储库错误
我已将我的应用程序从 heroku 克隆到我的计算机并进行了更改。现在,我正在尝试提交这些更改...
我已经通过终端登录heroku并写道:git commit -am "add widget" git push heroku master
我收到以下错误:“不是 git 存储库或任何父目录:.git”
我该如何解决这个问题?
heroku - Heroku 和 Environments - 域不工作
我发现在heroku上管理生产和登台环境确实是一个痛苦的过程,尤其是域、git等。
1)我创建了名为 htest 的应用程序。
2)在 htest 目录中,我执行了以下操作:
3)我提交了应用程序并启动了服务
3)我使用 htest-staging.herokuapp.com 的 cname 将域添加到 route53
正如预期的那样,我找不到网页。
更令人不安的是,当我访问http://htest-staging.herokuapp.com/时,我在页面上看到了这个:
我的 python 应用程序应该说你好世界。
所以..我该如何解决?
heroku - What does heroku rake and restart commands do?
I'm using heroku for a sort time and I have some doubts on what exactly do 2 'commands'
The first is rake
, I've seen here some people use it and some others, use the same instructions without rake
, so I'd like to know if there's any difference in using rake
or not
The other is more simple: heroku restart
Does this only affect the database or it also affect the code?
If it only affects the database, what happens to the data?
Should I use it, or it's an emergency command?
All info explained here and related to these instructions will be really helpful
Thanks!
django - Django 和 Heroku:静态文件与“工头启动”一起使用,但不适用于“./manage.py runserver”
我已经在下面的答案中添加了我自己的答案,这已经解决了。
使用 heroku 工具启动服务器时,我可以提供静态文件foreman
:
但它们的静态文件没有使用 runserver 提供:
我的Procfile
:
我的settings.py
(删除了一些设置):
我的主要urls.py
:
正如标题所说,我可以使用foreman start
但不能在运行时加载所有静态资产./manage.py runserver
。
我也跑过./manage.py collectstatic
,所以我知道所有静态文件都在正确的目录中。
Mystatic
和media
文件夹都位于myproject
文件夹下,以及settings.py
主urls.py
.
heroku - heroku pgbackups:恢复不起作用
当我运行heroku pgbackups:restore DATABASE_URL x123 --confirm app_name
时,控制台中的一切似乎都很顺利,但数据库仍然是空的。
帮助!
ruby-on-rails - 图像文件夹 - heroku 预编译
当我运行以下命令时:
我的公用文件夹根目录中的 css、javascripts 和任何内容都已预编译...但是,我的图像文件夹(位于公用文件夹中)未预编译。
如何确保我的公用文件夹已预编译(我希望它们位于我的 CDN 上,按照此处的步骤... https://devcenter.heroku.com/articles/cdn-asset-host-rails31)?
ruby - Explain the differences in setting up a web dev environment on Mac
I'm new to web development and as I research how to install various dev tools on my Mac the following questions have come up,
Should I install Heroku via the standalone toolbelt or via homebrew? Isn't the point of homebrew to manage non-Apple packages in a single place.
Ruby development using the bundler gem again seems like a wise decision, so that gems are no longer installed via gem install but rather with a project Gemfile. This would suggest that the only gem install required is Bundler. However, then I see developers install a range of tools like this
gem install bundler foreman pg rails thin --no-rdoc --no-ri
Is this just laziness or is there some reasoning behind this choice that I don't understand?
heroku - 如何使用 --remote 代替 --app 来执行 Heroku CLI 命令?
我通常将 --app 标志用于多个应用程序,但最近发现了 --remote。我更喜欢更通用的 --remote 但一直无法让它工作。
“git remote”列出了原始、暂存和生产,但运行,例如,“heroku logs --remote staging”会产生“未指定应用程序”错误。
在 Heroku irc 频道中有人告诉我,这应该可以工作,而且 --remote 可以用来代替 --app。我错过了什么?
heroku-toolbelt v. 2.37.2。谢谢。
postgresql - Heroku postgresql db在2个应用程序之间共享错误
我无法在两个herokuPostgreSQL
应用程序之间共享两个heroku 数据库。
不工作
到目前为止我尝试过的(我正在使用 Heroku CLI):
当我尝试访问psql
时,取决于我是否添加了新数据库,我得到了这两个答案(我在这两种情况下 heroku 都没有看到DATABASE_URL
我刚刚提供的。
作品
如果我向 psql 提供 db 的确切位置(在本例中是具有 db 作为附加组件的原始应用程序),它确实可以连接。
我读了
我密切关注在 Heroku和heroku-postgresql#create-new-db 的2 个应用程序之间共享数据库中给出的建议。