heroku

Problems Deploying Yeoman app to Heroku

落花浮王杯 提交于 2020-01-06 04:21:06
问题 I've been trying to deploy my AngularFullstack (node) app to Heroku. I created the app in the terminal with: yo angular-fullstack . Whenever I try to deploy to Heroku I get the following when I go to my deployed app: Application Error An error occurred in the application and your page could not be served. Please try again in a few moments. If you are the application owner, check your logs for details. The logs are: 2015-07-24T06:57:35.184227+00:00 heroku[web.1]: State changed from up to

Error in SendGrid on Heroku cedar stack

六眼飞鱼酱① 提交于 2020-01-06 03:30:09
问题 when I try to send an email via sendgrid on heroku cedar stack, I got an following error : ArgumentError (SMTP-AUTH requested but missing user name): my settings in /environments/staging.rb are : config.action_mailer.delivery_method = :smtp config.action_mailer.raise_delivery_errors = true config.action_mailer.default_url_options = { :host => 'myapp' } ActionMailer::Base.smtp_settings = { :address => "smtp.sendgrid.net", :port => "587", :authentication => :plain, :user_name => ENV['SENDGRID

Heroku Deployment Issues ([remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs)

旧巷老猫 提交于 2020-01-06 03:26:15
问题 I'm currently following along with Heroku's 'Getting Started With Python' tutorial. I keep running into the same issue on deployment, as I will paste below: $ git push heroku master Counting objects: 312, done. Delta compression using up to 8 threads. Compressing objects: 100% (276/276), done. Writing objects: 100% (312/312), 84.34 KiB | 2.34 MiB/s, done. Total 312 (delta 130), reused 0 (delta 0) remote: Compressing source files... done. remote: Building source: remote: remote: -----> Python

Google fonts error in js with bootstrap rails app using chartkick

ぐ巨炮叔叔 提交于 2020-01-06 03:18:40
问题 I have a rails 4 app using boostrap-sass and chartkick charts. Everything works great local but when I tried to push to heroku I got errors that searching revealed were probably due to js problems. So I opened the developer console for pages in my app and I get the following error ONLY on pages that have chartkick charts. GET http://fonts.googleapis.com/css?family=%27Lucida+Grande%27,+%27Lucida+Sans+Unicode%27,+Verdana,+Arial,+Helvetica,+sans-serif 400 (Bad Request) The charts are ok in the

How to freeze requirements that can't be satisfied locally?

旧城冷巷雨未停 提交于 2020-01-06 02:51:28
问题 I'm writing a Python app to deploy on Heroku. Per Heroku's guide, I need to list package requirements in a Pip requirements.txt file. The guide instructs me to install the packages locally, then run pip freeze > requirements.txt to write the frozen requirements file. However , one of the packages I want to use in deployment on Heroku can't be installed locally . It's incompatible with my operating system. So how do I write a requirements.txt including this package suitable for Heroku? The

How do you access your heroku database (specifically postgres)?

流过昼夜 提交于 2020-01-06 02:51:10
问题 When I am developing locally, I'll just run a rails c and I can fire of queries at the console. However, how can I query and access my postgres database that is up on heroku? 回答1: You can run heroku run rails c --app <appname> . I will also add, if you want to view your database, you can make use of PG Commander https://eggerapps.at/pgcommander/ which actually automatically parses all the credentials out for you. If you want to do this, run heroku config --app <appname> and then copy the

should I use elasticsearch from service prodiver or heroku addon or from my own elasticsearch set up? [closed]

做~自己de王妃 提交于 2020-01-06 02:23:29
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I have a nodejs app running on nodejitsu server. Lately I want to build search functionality for my app. The elasticsearch technology

ActionView::Template::Error (undefined method…) Works locally, but not on Heroku

眉间皱痕 提交于 2020-01-06 01:47:09
问题 I didn't have trouble on previous code pushed to Heroku, but this last push has messed up. The only thing that has changed is instead of looping through each student , it's now looping through each user . Background The code works locally, but not on Heroku. The page that is raising an error on Heroku is a list (index) of all the students. What the code is doing is looping through all Users that have a profile_type = "Student" . For some reason it's trying to access the polymorphic

I don't have to specify a port for heroku for my socket.io app?

可紊 提交于 2020-01-06 01:45:11
问题 I've successfully made a test chat app and I've gotten a node js server with socket.io running on heroku. On my local computer I have to specify the port number of localhost on the client side to the port that the server has set up. However, when I run my server code on heroku. Removing the server I'm using the process.env.PORT variable since heroku sets that up: var port = process.env.PORT || 3000; http.listen(port, function(){ console.log('listening on *:' + port); }); Naturally I find the

I am having trouble pushing my rails app to Heroku/getting the 'pg' gem to install?

拥有回忆 提交于 2020-01-06 01:27:25
问题 Originally I couldn't push my rails 4 app to heroku because my database was sqlite, and so now I have been trying to install the Postgresql gem ('pg') but I am not having any luck. This is the error message I get in my terminal after running bundle install: checking for pg_config... no No pg_config... trying anyway. If building fails, please try again with --with-pg-config=/path/to/pg_config checking for libpq-fe.h... no Can't find the 'libpq-fe.h header *** extconf.rb failed *** After