heroku

Deploying a Full Stack Node app npm / package.json architecture

↘锁芯ラ 提交于 2020-01-13 10:34:06
问题 I have a repository which contains a backend (Node/Express) and a Frontend client, as such: ├── build ├── config ├── coverage │ └── lcov-report ├── dist │ └── static ├── server (node/express server) │ ├── coverage │ ├── docs | ├── src │ ├── etc │ └── package.json | ├── src (Vue.js : client code) │ ├── api │ ├── assets │ ├── components │ ├── router │ └── store └── static └── package.json I have two package.json files, one for the client and one for the server. I face issues deploying on

Meteor Heroku App Crash after deployment

房东的猫 提交于 2020-01-13 09:59:53
问题 After deploying the app to heroku, my app fails to start. I think this might be to do with the build pack and latest version of meteor 0.9.x? Where should I start to debug this from? 2014-09-02T05:02:58.848513+00:00 heroku[web.1]: State changed from crashed to starting 2014-09-02T05:03:05.407436+00:00 heroku[web.1]: Starting process with command `.meteor/heroku_build/bin/node .meteor/heroku_build/app/main.js` 2014-09-02T05:03:06.578829+00:00 app[web.1]: module.js:340 2014-09-02T05:03:06

Push to Heroku fails: Could not find net-ssh-2.10.0 in any of the sources. Failed to install gems via Bundler

ε祈祈猫儿з 提交于 2020-01-13 09:19:33
问题 I tried pushing my app to heroku but get the following error: remote: -----> Using Ruby version: ruby-2.2.2 remote: -----> Installing dependencies using 1.9.7 remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment remote: Fetching gem metadata from https://rubygems.org/........... remote: Fetching version metadata from https://rubygems.org/... remote: Fetching dependency metadata from https://rubygems.org/.. remote: Could

Mongoid fails on ruby 1.9.3

孤者浪人 提交于 2020-01-13 08:35:13
问题 So I'm playing around with mongo stuffs. Created a new heroku app, added a mongolab option to it, but every mongoid method fails. I googled around, and it looks like this issue was common with ruby prior to 1.9.3, but I'm running 1.9.3. Here's the simplest failing sample: require 'sinatra' require 'mongoid' require 'json' require "sinatra/reloader" if development? Mongoid.load!("mongoid.yml") class Company include Mongoid::Document field :code, type: String field :sector, type: String field

Heroku Python/Django applications all simultaneously developed ImportError

眉间皱痕 提交于 2020-01-13 08:10:30
问题 Today all my Python/Django applications on Heroku stopped working. The logs for all of them show the same issue. When trying to restart/build, the error log is as shown below. I have tried rebuilding the projects in a new local virtual environment, and they work fine locally. However, when pushing them to Heroku, they encounter this ImportError and refuse to deploy. Similarly, when I try to restart the existing applications, I see the same error logged prior to the instance crashing. Please

Heroku Django Gunicorn 'Foreman Start' error

谁说我不能喝 提交于 2020-01-13 06:18:08
问题 I'm working through the Heroku's Django tutorial and I got all the way down to 'Using a different WSIG server'. When I try to use gunicorn I get the following error: requirements.txt Django==1.4.1 distribute==0.6.28 dj-database-url==0.2.1 psycopg2==2.4.5 gunicorn==0.14.6 Procfile web: gunicorn djtut.wsgi -b 0.0.0.0:$PORT (venv) C:\Users\xxxx\Documents\Python\djtut>foreman check valid procfile detected (web) (venv) C:\Users\xxxx\Documents\Python\djtut>foreman start 10:53:05 web.1 | started

Facebook canvas application never loads <body> contents?

感情迁移 提交于 2020-01-13 06:06:30
问题 I've built a Facebook application which should be available on the web or as a canvas application within Facebook. My setup is like so: SERVER | FACEBOOK APP | CURRENTLY WORKS ----------------------------------------------------------------------------- localhost | quotewarsdev | both in app and directly ----------------------------------------------------------------------------- quotewars2012.com | quote_wars | only by accessing directly I've developed and deployed other Facebook apps using

How to set environment variables in heroku-django project?

旧巷老猫 提交于 2020-01-13 05:54:14
问题 I have this code in my settings.py.. EMAIL_HOST = 'smtp.sendgrid.net' EMAIL_HOST_USER = os.environ.get('EMAIL_HOST_USER') EMAIL_HOST_PASSWORD = os.environ.get('EMAIL_HOST_PASSWORD') I tried setting environment variable using this in heroku bash export EMAIL_HOST_USER=xxx and also heroku config:set EMAIL_HOST_USER=xxx None of the both method worked for me. How can i set environment variable in heroku? 回答1: okk.. found the answer!! instead of heroku config:set EMAIL_HOST_USER=xxx writing heroku

How to set environment variables in heroku-django project?

你。 提交于 2020-01-13 05:54:09
问题 I have this code in my settings.py.. EMAIL_HOST = 'smtp.sendgrid.net' EMAIL_HOST_USER = os.environ.get('EMAIL_HOST_USER') EMAIL_HOST_PASSWORD = os.environ.get('EMAIL_HOST_PASSWORD') I tried setting environment variable using this in heroku bash export EMAIL_HOST_USER=xxx and also heroku config:set EMAIL_HOST_USER=xxx None of the both method worked for me. How can i set environment variable in heroku? 回答1: okk.. found the answer!! instead of heroku config:set EMAIL_HOST_USER=xxx writing heroku

Heroku domain registration configured to bamboo on a cedar stack

☆樱花仙子☆ 提交于 2020-01-13 04:59:46
问题 I have a DNS config issue with Heroku while running on the Cedar Stack. It keeps thinking I'm routing my Cedar stack to Bamboo when my custom domains have the correct pointing CNAME records and are properly configured to Heroku instruction. Here's what happened: I recently created a heroku app in the past week with a cedar stack. Region: United States Stack: Cedar Framework: Ruby/Rails And I used NameCheap to register my domain and pointed it to the CNAME record. Host Name | IP Address/URL |