heroku

Heroku error message no Cedar-supported app detected

旧街凉风 提交于 2020-01-01 10:12:11
问题 So, I am running into more problems with heroku and this rails tutorial. The rails tutorial I am making had me develop a super basic app. They then had me create a bit bucket account. After this they had me create a Heroku account. Now they are asking me to push my origin master to my heroku host. When I do this, I am getting this error message and I cannot figure it out. Anyone have any hints as to how I could solve this? Thanks so much in advance! alopex@alopex-TH55-HD:~/work-space$ git

Heroku SSL with Route53

ぐ巨炮叔叔 提交于 2020-01-01 10:02:09
问题 My SSL certificate is all set up and ready to go on Heroku. I followed the instructions here https://devcenter.heroku.com/articles/route-53 to correctly redirect requests (e.g. example.com to www.example.com) using AWS S3. HTTPS works great when requestiong https://www.example.com; however, if I attempt to request https://example.com, the page cannot be found. Any thoughts? 回答1: Using Route 53, you want to create the following DNS records: www.example.com CNAME your_app.herokuapp.com example

Rails configuration secret key base returning nil

坚强是说给别人听的谎言 提交于 2020-01-01 09:57:27
问题 When running rails console, my call to Rails.configuration.secret_key_base in my development environment keeps returning nil. #secrets.yml development: secret_key_base: the-long-secret-generated-by-rake-secret #...other configs, a call while running heroku rails c in production also returns nil How can this be? Running rails 4.1.0 回答1: As noted in the documentation: The secrets added to this file are accessible via Rails.application.secrets . Running Rails.application.secrets.secret_key_base

git push only one file to Heroku

梦想的初衷 提交于 2020-01-01 09:33:54
问题 Is it possile to only push one file to Heroku, instead off all changed files? Thanks... 回答1: No. Git tracks content not files, so you push all or nothing. If there are files that you don't want to ever push, add them to the .gitignore file. If you've already committed them however, you would still push them for that commit, but any later changes will be ignored. 回答2: If you commit only that one file then it is the only one that will be pushed. 回答3: You can commit single files user@mypc~$ git

how to use google api keys based on heroku application name

守給你的承諾、 提交于 2020-01-01 09:17:24
问题 I've created a few different "environments" for my app that is hosted on heroku so I have: appName-staging.heroku.com appName-production.heroku.com I want to use different google api keys for these applications, how do I do this? i've created a google.yml file that looks like: development: api_key: 'ABCXYZ' production: api_key: 'DEFXYZ' so I use ABCSZY when developing locally, and DEFXYZ for appName-production.heroku.com question is, how do i get appName-staging.heroku.com to use a different

How to write Procfile for node.js heroku deployment using bin/www?

僤鯓⒐⒋嵵緔 提交于 2020-01-01 09:11:23
问题 I am trying to deploy a Heroku app, and I believe the procfile may be the reason my app is not deploying. I've tried multiple solutions including: web: node ./bin/www web: npm start There may be another reason my app is not working, but I want to make sure my Procfile is set up correctly 回答1: This is what I have: A file in the root directory of the project called Procfile (no file extension) Inside the file, the first line reads web: bin/web In the bin directory which is also located in the

Heroku push rejected, Submodule install failed

ぐ巨炮叔叔 提交于 2020-01-01 08:46:41
问题 My repo uses a customized version of Recurly-js, and I have packaged it as a submodule using these instructions https://devcenter.heroku.com/articles/git-submodules . However, I get the following error now when I try to deploy: ----> Heroku receiving push -----> Git submodules detected, installing Submodule 'recurly-js' (/app/tmp/repo.git/recurly-js) registered for path 'recurly-js' Initialized empty Git repository in /tmp/build_3iacvn8h2rnha/recurly-js/.git/ fatal: '/app/tmp/repo.git/recurly

! [remote rejected] master -> master (pre-receive hook declined) [duplicate]

﹥>﹥吖頭↗ 提交于 2020-01-01 07:31:11
问题 This question already has answers here : remote rejected master -> master (pre-receive hook declined) (18 answers) Closed 5 years ago . Tasks: TOP => assets:precompile (See full trace by running task with --trace) ! ! Precompiling assets failed. ! ! Push rejected, failed to compile Ruby app To git@heroku.com:tranquil-crag-9767.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'git@heroku.com:tranquil-crag-9767.git' Any ideas why this is

SSL redirects in Heroku

旧巷老猫 提交于 2020-01-01 07:06:12
问题 I'm having loads of trouble getting my Java web app working on Heroku. This is what I have: A Java web app (standard war file) using Spring Security with a security-constraint section in my web.xml that looks like this: <security-constraint> <web-resource-collection> <web-resource-name>SSL URLs</web-resource-name> <url-pattern>/j_spring_security_check</url-pattern> <url-pattern>/secure/account/create</url-pattern> <url-pattern>/register</url-pattern> <url-pattern>/login/*</url-pattern> <url

Rails - Using Tempfile to write on Heroku?

懵懂的女人 提交于 2020-01-01 06:58:25
问题 I need to be able to write a temporary file for use during the request only. Locally I can use the following successfully: tempfile = File.open(a.original_filename,'w') tempfile.write_nonblock(a.body) paperclip stuff........ tempfile.close That works great, but not on Heroku... How can I do the above with Heroku's restrictions: link text I'm not understanding how to translate the above into: #{RAILS_ROOT}/tmp/myfile_#{Process.pid} Thanks for any help you can provide here. 回答1: I have a