I have a Ruby on Rails app that needs process many background jobs simultaneously: anywhere from 5-6 at a time to up to 50-60 at a time depending on the time of day. Right now my app is running on Heroku, which charges $.05/hour per worker, regardless of how much CPU or memory the worker is using. This is costing me a boatload each month...
I am attempting to deploy my first app on Heroku and having a little trouble getting the S3 connection to work.
Here is the error I am getting from the Heroku logs:
AWS::S3::CurrentBucketNotSpecified (No bucket name can be inferred from your current connection's address (`s3.amazonaws.com')):
I have the following configured:
config...
I'm on Heroku, and emails don't get sent out in development, but are properly being sent in production. I'd like to run a seperate staging instance on Heroku, but don't want emails being sent out (just to a log).
...
This app works just fine on my local computer. After pushing it to Heroku, static pages appear to be working but the blog section throws an Internal Server Error. I pulled the logs by running "heroku logs" and this is what I get:
==> production.log <==
/usr/ruby1.8.7/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:i...
After I deploy an app to Heroku, I run migration scripts and get this error message
...ites\padrino\prophetmargin> heroku rake ar:migrate
rake aborted!
SQLite3::ReadOnlyException: attempt to write a readonly database: CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
/disk1/home/slugs/215264_925fd2c_65a3/mnt/.bundle/gem...
I'm using Heroku, and have added a couple custom domains for my app, i.e. myapp.com and www.myapp.com
My DNS at GoDaddy has three A records for '@' pointing to three separate Heroku IPs, and a CNAME for the 'www' subdomain that points to proxy.heroku.com
What I want to do is redirect any traffic to www.myapp.com to myapp.com. I tried s...
I am trying to rake the db:migrations into my heorku instance and I get an error. The FAQ described my error as below:
Cannot change column type
Example: PGError: ERROR: column
“verified_at” cannot be cast to type
“date”
Cause: PostgreSQL doesn’t know how to
cast all the rows in that table to the
specified type. Mo...
When I deploy my rails app (which uses restful_authentication), to Heroku, I get the following errors:
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:105:in `const_missing': uninitialized constant User::Authentication (NameError)
from /disk1/home/slugs/216145_64fa92e_1859/mnt/app/models/user.rb...
I have one 'super' repository in GitHub which will contain several applications I would like to deploy to Heroku. Here is an example of my repository.
/app
/.git
/website <-- would like to deploy this to Heroku
When I try to push using the following command:
$ git push heroku master
I get the following error:
Heroku push rejec...
I have an app that has the following in the routes file:
namespace "admin" do
# ADMINISTRATIVE ROUTES ONLY
root :to => 'home#index'
resources :comments do
member do
get :approve
get :reject
end
end
resources :users do
member do
get :block
get :unblock
...
hey out there!
i often need to switch heroku accounts and use a script which does the following:
heroku keys:clear && rm ~/.heroku/credentials && heroku list
after which i need to enter my credentials for the account i want to switch to:
Enter your Heroku credentials.
Email: [email protected]
Password:
Uploading ssh public key /Users/f...
Using Rails 3 Beta 4:
I'm getting this error, but can't quite follow why, as it's working locally. It's a pretty small application at the moment, and I can see that one controller is working, but the SessionsController is not. Does this uninitialized constant error look familiar to anyone?
Started GET
"/sessions/create?code=2.pzgz...
Heroku allows you to add and remove dynos and workers on the fly and charges you per second that each is used. Is it possible to set up my app so that it can add/remove dynos and workers from itself depending on the load it's under via some sort of heroku api?
...
I have a gem that uses a binary (htmldoc) that is not bundled into the gem as a native extension (so you can't run rake gems:build to have htmldoc installed). The host machine has to have the htmldoc binary compiled and installed on it in order for the gem to work. How do you get binaries to compile and install when your heroku instance ...
I am using the following code in my controller:
@monday = (Time.now).at_beginning_of_week
@friday = 5.days.since(@monday)-1.second
@sent_emails = ContactEmail.all(:conditions => ['date_sent >= ? and date_sent <= ?', @monday, @friday])
Although it works fine on my local sqlite, I have an "operator does not exist timestamp witho...
hi,
i'm getting an error when pushing to heroku using rails 3 beta 4. i've
managed to deploy before using it but for some reason i'm getting a
strange error now.
I'm on os x, snow leopard. I've been using rvm with both 1.9.2 preview
and head, i also just reverted back to the system ruby 1.8.7 -p254 but
they all give me the same err...
Hello, I haven't used Ruby. I don't what gems are. But I know how to install them and do basic things like that.
I heard of Jekyll and decided to start my own using Heroku. I found Rack-Jekyll that will work on Heroku.
I created my site as per Jekyll instructions and it is running fine on my system. Then I did what I was told to do in ...
Hi,
I try to deploy my first app on heroku.
I've created a gem manifest file which include:
i18n_routing --version '0.3.3'
When I push to heroku, all the gems are installed but i18n:
-----> Installing gem i18n_routing 0.3.3 from http://rubygems.org
ERROR: Error installing i18n_routing:
i18n requires RubyGems version >...
I have a column type date (shown from annotate) on my Contacts table:
# date_entered :date(255)
This is the line of code that has worked for me locally on my sqlite3 database, but now generates an error in Heroku:
<%= contact.date_entered.to_s(:long) %>
The error that I get is:
wrong number of arguments (1 for 0)
I remove...
I am developing a ruby on rails website using heroku and git.
What tools and features should I use to set up the following simple development process?
CODE > CHECK-IN > AUTO TEST > AUTO DEPLOY
I check my code into my repository (preferred option, hosted git like github)
Tests are automatically run AND website is deployed in my stagin...