heroku

Heroku: ImportError: No module named site

非 Y 不嫁゛ 提交于 2019-12-31 00:46:20
问题 After some changes in my repo and deploy to heroku I am receiving the following error: ImportError: No module named site I not have idea what can cause the problem because I only change some Django templates in the last 2 commits. Best Regards 回答1: Take a look at your Procfile. It should show something like this: web: gunicorn site:app Make sure site is the name of your app. 回答2: I just had a very similar issue which I was able to solve. Maybe it is the same problem? Heroku app crashed after

Heroku css not loading after assets:precompile

一曲冷凌霜 提交于 2019-12-31 00:45:14
问题 Heroku suddenly stopped working and gave me this error: could not connect to server: Connection refused Is the server running on host "127.0.0.1" and accepting Precompiling assets failed. After some research I ran this line: running RAILS_ENV=production bundle exec rake assets:precompile This worked but now when i push an update to heroku the new css doesn't load. This line never used to show before: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor

Has anyone successfully deployed on heroku from a windows platform?

帅比萌擦擦* 提交于 2019-12-30 22:53:15
问题 I've been reading all kinds of tutorials on how to deploy rails apps on heroku from windows. I've tried installing git, heroku gem, generating ssh keys and setting paths and everything... I get either public key error (without putty) or fatal no auth found (with putty)... 回答1: After some setup problems -- indeed related to SSH keys -- I've successfully developed Rails/Sinatra applications on Windows and deployed those to Heroku. It works fine. Generating the keys was a challenge -- I didn't

Has anyone successfully deployed on heroku from a windows platform?

戏子无情 提交于 2019-12-30 22:53:11
问题 I've been reading all kinds of tutorials on how to deploy rails apps on heroku from windows. I've tried installing git, heroku gem, generating ssh keys and setting paths and everything... I get either public key error (without putty) or fatal no auth found (with putty)... 回答1: After some setup problems -- indeed related to SSH keys -- I've successfully developed Rails/Sinatra applications on Windows and deployed those to Heroku. It works fine. Generating the keys was a challenge -- I didn't

error: [Errno 98] Address already in use

巧了我就是萌 提交于 2019-12-30 17:25:30
问题 I'm creating a simple flaskapp which I'm going to deploy on heroku, first time deploying a python app on heroku, with that said i'm new to gunicorn. Addtitional notes: Using a virtual environment. Version of flask Flask==0.10.1 gunicorn==19.3.0 Using 'python run.py' works Using 'foreman start' I get the following error 16:35:44 web.1 | started with pid 4047 16:35:44 web.1 | [2015-03-30 16:35:44 +0000] [4047] [INFO] Starting gunicorn 19.3.0 16:35:44 web.1 | [2015-03-30 16:35:44 +0000] [4047]

Ruby on rails and Heroku problem

喜夏-厌秋 提交于 2019-12-30 17:23:21
问题 $ git push heroku master I basically get this error message. error: src refspec master does not match any. error: failed to push some refs to 'git@heroku.com:falling-stone-505.git' I'm very new to computer programming and ruby on rails so an "idiots" guide to solving this would be appreciated. Thanks in advance. 回答1: You haven't committed anything to push yet. Try doing: $ git add -A $ git commit Then try to push to Heroku again. You might try following along with this tutorial, although I

Ruby on rails and Heroku problem

拥有回忆 提交于 2019-12-30 17:23:18
问题 $ git push heroku master I basically get this error message. error: src refspec master does not match any. error: failed to push some refs to 'git@heroku.com:falling-stone-505.git' I'm very new to computer programming and ruby on rails so an "idiots" guide to solving this would be appreciated. Thanks in advance. 回答1: You haven't committed anything to push yet. Try doing: $ git add -A $ git commit Then try to push to Heroku again. You might try following along with this tutorial, although I

Deploying on Heroku - Images disappears after upload

别说谁变了你拦得住时间么 提交于 2019-12-30 17:09:24
问题 I deployed an application on Heroku which I wrote on Ruby on Rails. It is a movie review app. I am able to upload images from my computer, to the web app online. Everything else works as per my expectations. The images disappear after a day. My requirement is to have the image continue to render. I am using Paperclip gem from rails. This only happens on the deployed version and not on localhost. 回答1: The default upload location on Heroku is into temporary storage. This is because you will get

Rails 4 - Heroku Sqlite3 error

不羁岁月 提交于 2019-12-30 17:06:05
问题 I'm having some trouble with Herouku. I can't push because of the following error: Gem files will remain installed in /tmp/build_2jdec30lsc3bu/vendor/bundle/ruby/2.0.0/gems/sqlite3-1.3.7 for inspection. Results logged to /tmp/build_2jdec30lsc3bu/vendor/bundle/ruby/2.0.0/gems/sqlite3-1.3.7/ext/sqlite3/gem_make.out An error occurred while installing sqlite3 (1.3.7), and Bundler cannot continue. Make sure that `gem install sqlite3 -v '1.3.7'` succeeds before bundling. ! ! Failed to install gems

Rails 4 - Heroku Sqlite3 error

不问归期 提交于 2019-12-30 17:05:27
问题 I'm having some trouble with Herouku. I can't push because of the following error: Gem files will remain installed in /tmp/build_2jdec30lsc3bu/vendor/bundle/ruby/2.0.0/gems/sqlite3-1.3.7 for inspection. Results logged to /tmp/build_2jdec30lsc3bu/vendor/bundle/ruby/2.0.0/gems/sqlite3-1.3.7/ext/sqlite3/gem_make.out An error occurred while installing sqlite3 (1.3.7), and Bundler cannot continue. Make sure that `gem install sqlite3 -v '1.3.7'` succeeds before bundling. ! ! Failed to install gems