heroku

Rails 4 - Heroku Sqlite3 error

 ̄綄美尐妖づ 提交于 2019-12-30 17:05:04
问题 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

Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 90 seconds of launch

限于喜欢 提交于 2019-12-30 13:27:02
问题 I am trying to deploy my Spring Boot Application to Heroku but I keep getting: 2018-05-06T14:41:35.181889+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 90 seconds of launch 2018-05-06T14:41:35.182093+00:00 heroku[web.1]: Stopping process with SIGKILL 2018-05-06T14:41:35.482221+00:00 heroku[web.1]: Process exited with status 137 2018-05-06T14:41:35.496155+00:00 heroku[web.1]: State changed from starting to crashed I've seen some answers which tell

Static files not found - Deploying Django on Heroku

时光毁灭记忆、已成空白 提交于 2019-12-30 11:13:29
问题 I am trying to deploy a Django site on Heroku, but I'm running into problems getting the app to locate my static files. I have used python manage.py collectstatic to collect my static files into a staticfiles folder, but my app still doesn't seem to be able to find them. I continue to get errors like this in my log: I'm not sure if I am referencing the paths properly. The path's that are set to images/stylesheets/scripts in the code are using the path to the original static folder used in

Static files not found - Deploying Django on Heroku

青春壹個敷衍的年華 提交于 2019-12-30 11:13:10
问题 I am trying to deploy a Django site on Heroku, but I'm running into problems getting the app to locate my static files. I have used python manage.py collectstatic to collect my static files into a staticfiles folder, but my app still doesn't seem to be able to find them. I continue to get errors like this in my log: I'm not sure if I am referencing the paths properly. The path's that are set to images/stylesheets/scripts in the code are using the path to the original static folder used in

Resque Mysql2::Error: User has exceeded the 'max_user_connections' resource (current value: 10)

和自甴很熟 提交于 2019-12-30 10:59:07
问题 I am running Resque on Heroku, and my database is ClearDB. I am getting this error: "Mysql2::Error: User 'bdb2aedbee2c38' has exceeded the 'max_user_connections' resource (current value: 10): SHOW FULL FIELDS FROM projects " That error is coming from my Resque admin of my Heroku app. How can I figure out how many connections Resque is making to ClearDB? How can I tell ClearDB to either allow more connections, or tell Resque to create less? Does "current value: 10" refer to how many

Heroku automatically changing RAILS_ENV and RACK_ENV variables to “production” on every deploy

橙三吉。 提交于 2019-12-30 08:33:09
问题 Every time I push a new version to my staging heroku app, the RACK_ENV and RAILS_ENV variables are changed to "production", instead of "staging" which is the value I manually assigned. This started happening a couple of hours ago. A line like this is logged on the activity page on the heroku site on every deploy: v741 app_owner@gmail.com: Add RAILS_ENV, RACK_ENV, PATH, LANG, GEM_PATH config 6 minutes ago I should talk to heroku support, but it seems that now the only place where questions can

Heroku static files not loading, Django

纵然是瞬间 提交于 2019-12-30 07:44:33
问题 I'm trying to push my Django project to Heroku, but it isn't loading the staticfiles. I used this to setup the things, everything is fine but I'm not able to fix the issue with static files. My directory structure is like this help_the_needy help_the_needy __init__.py settings.py urls.py views.py wsgi.py manage.py Procfile requirements.txt static css font-awesome fonts img js templates base.html display_list2.html index.html Here is the complete code (all files). This is my settings.py. I

Multiple Heroku apps on a single domain

一个人想着一个人 提交于 2019-12-30 07:16:10
问题 I'm pretty sure the answer to this is "not possible", but I thought I would check one last time: I'm migrating some Rails apps to Heroku. The way they are organized now, URL-wise, is: http://example.com/site1 -- is served by app1 http://example.com/site2 -- is served by app2 Everything I've read so far says this isn't possible on Heroku: that each application must have its own subdomain (e.g. site1.example.com, site2.example.com). My client does not want to change the URL structure (and

Heroku + CDN Cloudfront + Fonts - Firefox bugs

橙三吉。 提交于 2019-12-30 06:51:12
问题 Recently we moved our assets on a CDN Cloudfront. We have noticed that the surfaces were broken on Firefox. After a few minutes of searching, it was a story of CORS. We allowed the field Cloudfront. application_controller : after_filter :set_access_control_headers def set_access_control_headers headers['Access-Control-Allow-Origin'] = CDN_CLOUDFRONT end production.rb : CDN_CLOUDFRONT = "http://xxx.cloudfront.net" This worked very well until yesterday. After several searches and reflections, I

Heroku push rejected

别说谁变了你拦得住时间么 提交于 2019-12-30 05:25:07
问题 -----> Ruby/Rack app detected -----> Using Ruby version: ruby-1.9.3 -----> Installing dependencies using Bundler version 1.3.0.pre.2 Running: bundle install --without development:test --path vendor/bundle --binstubs bin/ Fetching gem metadata from http://rubygems.org/......... Fetching gem metadata from http://rubygems.org/.. ^[[C^[[D^[[D/app/slug-compiler/lib/utils.rb:66:in `block (2 levels) in spawn': command='/app/slug-compiler/lib/../../tmp/buildpacks/ruby/bin/compile /tmp/build