cedar

Heroku cedar stack, thin and eventmachine

好久不见. 提交于 2019-12-02 10:31:31
Do Heroku Cedar stack apps require thin and eventmachine in Gemfile? gem 'thin' gem 'eventmahine' What about versions? On other stacks they were installed automatically? Yes, you need to specify any gem that you want to use on Cedar stack unlike on Bamboo which had preinstalled gems. Go with whatever version your application needs, 来源: https://stackoverflow.com/questions/8362303/heroku-cedar-stack-thin-and-eventmachine

heroku: bash: bundle: command not found

。_饼干妹妹 提交于 2019-12-01 17:05:06
I am porting a Heroku app from Aspen to Cedar stack at Heroku, following their instructions. I'm at the last deploy step. I get this error: 2012-10-22T11:23:53+00:00 heroku[web.1]: Starting process with command `bundle exec thin start -p 40310 -e production` 2012-10-22T11:23:54+00:00 app[web.1]: bash: bundle: command not found I can't see how I can be responsible for telling the Heroku stack where bundle is, or providing it, since bundler is used by it for exactly this job. This command is specified in the Procfile for the app: web: bundle exec thin start -p $PORT -e $RACK_ENV Another similar

heroku: bash: bundle: command not found

此生再无相见时 提交于 2019-12-01 16:26:57
问题 I am porting a Heroku app from Aspen to Cedar stack at Heroku, following their instructions. I'm at the last deploy step. I get this error: 2012-10-22T11:23:53+00:00 heroku[web.1]: Starting process with command `bundle exec thin start -p 40310 -e production` 2012-10-22T11:23:54+00:00 app[web.1]: bash: bundle: command not found I can't see how I can be responsible for telling the Heroku stack where bundle is, or providing it, since bundler is used by it for exactly this job. This command is

Production Rake Tasks Don't Recognize My Models

十年热恋 提交于 2019-11-30 20:10:48
When I was running Heroku Bamboo, this was never a problem. Now, on Cedar, I get errors whenever I try to access my models from within a rake task on the server. This happens with rake db:seed , a standard rake task, as well as my own custom built tasks that explicitly include :environment. I even do so redundantly: namespace :db do desc "Update db" task :new_seed => :environment do require './Scraped_Data/Games/code/column-headers.rb' require 'csv' require 'net/http' require './config/environment.rb' # code here... end end I can't find any mention of this issue elsewhere, and all of these

how to make a simple php app send emails from heroku cedar stack?

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-30 12:23:40
I have a very simple php website, that has a contact form that uses the php mail() function to send emails. How can i host this on heroku? wich add-on should i use, and how do i set it to work with php? Here's what I did to solve this same problem: 1.You need to use a custom buildpack which installs the pear packages mail and Net_SMTP. You can use the one I created by running the following command: heroku config:add BUILDPACK_URL=https://github.com/antonyevans/heroku-buildpack-php.git The key changes are the addition of the lines: php/bin/pear install Mail php/bin/pear install Net_SMTP Into

HardDisk Quota — Cedar Stack (Heroku)

不问归期 提交于 2019-11-30 11:24:38
I know that the maximum slug size allowed is 200 MB. But what is the maximum disk space you can use per instance? Say I'm downloading a couple of files when the node process is running. heroku run bash ~ $ df -h /tmp Filesystem Size Used Avail Use% Mounted on - 620G 6.1G 583G 2% /tmp You have approximately 620Gb in the /tmp folder. Any other folder doesn't really matter, as they're readonly anyway. When I ran df on one of my instances just now (Cedar 14), I get 304G total, 240G available. Still a lot, but less than the responder above. Just an FYI to check your specific instance. ~ $ df -h

Production Rake Tasks Don't Recognize My Models

三世轮回 提交于 2019-11-30 04:28:13
问题 When I was running Heroku Bamboo, this was never a problem. Now, on Cedar, I get errors whenever I try to access my models from within a rake task on the server. This happens with rake db:seed , a standard rake task, as well as my own custom built tasks that explicitly include :environment. I even do so redundantly: namespace :db do desc "Update db" task :new_seed => :environment do require './Scraped_Data/Games/code/column-headers.rb' require 'csv' require 'net/http' require './config

how to make a simple php app send emails from heroku cedar stack?

好久不见. 提交于 2019-11-29 17:51:35
问题 I have a very simple php website, that has a contact form that uses the php mail() function to send emails. How can i host this on heroku? wich add-on should i use, and how do i set it to work with php? 回答1: Here's what I did to solve this same problem: 1.You need to use a custom buildpack which installs the pear packages mail and Net_SMTP. You can use the one I created by running the following command: heroku config:add BUILDPACK_URL=https://github.com/antonyevans/heroku-buildpack-php.git

How to Enable GZIP compression on Play Framework 1 app on Heroku Cedar?

余生颓废 提交于 2019-11-29 12:44:22
问题 I'd like to enable GZIP compression for public assets and HTTP responses for performance. My site has a lot of mobile access. As far as I can tell, there is nothing built into Play Framework to support this, and Heroku doesn't seem to have a solution either. What is the best way to start getting some compression on my app? 回答1: Check out: https://gist.github.com/1317626 回答2: Ok I've had a go at minifying and gzipping all STATIC resources - nobody seems to have attempted this yet. Play

Heroku logging not working

孤街浪徒 提交于 2019-11-28 19:39:57
I've got a rails 3.1 app deployed on Heroku Cedar. I'm having a problem with the logging. The default rails logs are working just fine, but when I do something like: logger.info "log this message" In my controller, Heroku doesn't log anything. When I deploy my app I see the heroku message "Injecting rails_log_stdout" so I think calling the logger should work just fine. Puts statements end up in my logs. I've also tried other log levels like logger.error. Nothing works. Has anyone else seen this? MBHNYC I was just having the same issue, solved by using the technique here: https://github.com