heroku

App on Github and heroku: Ignore file on one but not the other

雨燕双飞 提交于 2020-01-02 08:05:30
问题 I have an app whose code is up on github but which is hosted on heroku. I have a config file that I don't want on Github, but I need on heroku. Anyone have a clever solution? 回答1: Use config vars instead of a file. 来源: https://stackoverflow.com/questions/5280099/app-on-github-and-heroku-ignore-file-on-one-but-not-the-other

App on Github and heroku: Ignore file on one but not the other

时光总嘲笑我的痴心妄想 提交于 2020-01-02 08:05:08
问题 I have an app whose code is up on github but which is hosted on heroku. I have a config file that I don't want on Github, but I need on heroku. Anyone have a clever solution? 回答1: Use config vars instead of a file. 来源: https://stackoverflow.com/questions/5280099/app-on-github-and-heroku-ignore-file-on-one-but-not-the-other

Local import in non-local package

久未见 提交于 2020-01-02 07:40:23
问题 I know local imports should be avoided, however special circumstances demand it in this case. It's a private repo, and the heroku buildpack fails in the go get ./... phase when used with absolute urls, due to a missing private key on the server. Now I get this error local import ".." in non-local package . All import paths were changed to the local version so what remains that qualifies a package as "non-local"? How do I fix this? 回答1: I fixed it. The issue was that the root package was in

Heroku app runs locally but gets H12 timeout error (uses a package)

末鹿安然 提交于 2020-01-02 07:32:38
问题 Similar questions have been asked but the H12 seems to be caused by many things and none of the answers apply here. I have built python apps with heroku before but now I'm using a package structure per Miguel Grinberg's Flask Mega-Tutorial and I can't figure out what's wrong. My app is python / Flask / SQLAlchemy with a Heroku postgres database. The app fully works locally. When I push to Heroku, I get an H12. Here is my app structure: rootappdirectory\ app\ static\ templates\ __init__.py

how to prevent bundler from adding platform info to Gemfile.lock

懵懂的女人 提交于 2020-01-02 07:12:26
问题 every time I run bundle --without=production bundler adds platform information PLATFORMS x86-mingw32 to Gemfile.lock and I have to remove that info manually as I am deploying to Heroku. If I do not remove it, Gemfile.lock is not added to repository and causes errors. how can I prevent bundler from adding platform info to Gemfile.lock 回答1: I had a very similar question - Can I stop Bundler from adding RUBY VERSION to Gemfile.lock - and it turns out the answer is that it can't be done. Bundler

Cannot seed data in production using heroku

爷,独闯天下 提交于 2020-01-02 07:08:35
问题 I had posted this question before but I haven't got any answers that solved my problem. Therefore, I am reposting this question. I am using heroku to deploy my rails app. I am trying to seed some data in the production by running the command heroku run rake db:seed. However, the command is not working. I am not able to seed files in production. The seeds.rb file is given below. #This file should contain all the record creation needed to seed the database with its default values. #The data can

Why is whitenoise crashing in a default Django project on Heroku?

谁说胖子不能爱 提交于 2020-01-02 06:45:20
问题 I'm trying to launch a new Django app, following Heroku's instructions. When I get to activating whitenoise it crashes. I haven't even written any app code yet. What's going wrong? Here's the traceback of a web worker crashing: [2015-06-26 20:37:36 +0000] [11] [ERROR] Exception in worker process: Traceback (most recent call last): File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/arbiter.py", line 507, in spawn_worker worker.init_process() File "/app/.heroku/python/lib/python2.7

Heroku asset files always empty

人盡茶涼 提交于 2020-01-02 05:12:24
问题 First, I did a hell of a lot of googling to even get things working on Heroku, but it seems that regardless of whether I let heroku pre-compile my assets during slug compilation, or if I precompile them myself and submit them, either way, my Rails 4 app's application.css is always empty: $ curl -i http://www.boxscoregeeks.com/assets/application-c712146df692b0fca6c21c0bf1dddcd5.css HTTP/1.1 200 OK Content-Type: text/css Date: Sun, 01 Sep 2013 00:50:10 GMT Last-Modified: Sun, 01 Sep 2013 00:46

Couldn't find that process type, Heroku

我的未来我决定 提交于 2020-01-02 04:29:08
问题 I'm trying to deploy a simple python bot on Heroku but I get the error couldn't find that process type When I try to scale the dynos. I already made a procfile and it looks like this: web: gunicorn dep:app , where "dep" is the name of my python code What could be the reason? 回答1: This may happen if your procfile is misspelt, such as "procfile" or "ProcFile" etc. The file name should be "Procfile" (with a capital P). sometimes changing the file name is not anough, because git wouldn't spot the

How do I tell Sinatra what environment (development, test, production) it is?

穿精又带淫゛_ 提交于 2020-01-02 03:39:08
问题 (Disclaimer: New to deploying Sinatra on Heroku.) I have seen http://www.sinatrarb.com/configuration.html and it tells me to set :environment, :production . My question is, how can I specify it to do: "when in Heroku, set environment as production, else stay in test/development." Also, even after putting the line set :environment, :production , I don't think it is working because when I try to rackup the app locally, it's still running (when I know (or I think I know) that it shouldn't