heroku

How to run a cron job in Heroku, with a Sinatra app

Hi there! I'm writing a tiny Sinatra app, and I want to host it on Heroku for simplicity sake. But, what I have is a task that scraps some sites and adds some data into my database every hour. Currently this is just written as a ruby script that needs to be executed. What Heroku has is a rake based cron job. Now if this was a rails ...

How can I programmatically replace the contents of the current db with a .sqlite3 file in a rails app running on heroku?

When a certain request hits my app I would like to reset the database back to its original state which is backed up in an sqlite3 file. I'd appreciate any help. The app is hosted on heroku. ...

Create a website that lets users create a website?

I have always written websites that interact with the endusers directly. Now I want to create a website that lets users create their own websites - from scratch. Almost like Drupal online, I provide all the unit blocks for them to use to build their own website. They just drag and drop text fields, buttons, (div) containers etc. I hav...

Joyent vs Heroku for Node.js?

Has anyone used both Joyent and Heroku and could share your thoughts about each one of them? First I used Heroku with Rails but since I switched to Node.js in the backend I haven't made up my mind where to host my future node applications. It seems that the best candidates are Joyent and Heroku. Heroku has closed it's Node.js registra...

Node.js on Heroku?

I wonder if all Heroku addons - that are currently working for Rails - will work for Node.js once the support is there? And what is the ETA for the launch of Node.js support? ...

Heroku Git Repository Size

During late development of an application I've been git pushing to heroku such that the repository there is fairly large. I would like at this stage, before site launch, to remove all old versions from the repo as it seems sensible housekeeping. What would be the best way to go about this so my online application be uninterrupted? ...

How can I run a migration on my production database but not my development database?

I have a development database on my computer and a production database on Heroku. I need to run a migration on the production database, to clear certain data, that I don't want to run on the development one. So far I've only been doing migrations that I've wanted to run on both, so I just create it on my computer, run it, then when I upl...

Heroku command: Heroku Rake db:migrate fails

When I run Heroku db:migrate I get an error: rake aborted! no such file to load -- sqlite3 /disk1/home/slugs/313735_a606978_6916/mnt/Rakefile:4 (See full trace by running task with --trace) (in /disk1/home/slugs/313735_a606978_6916/mnt) When I do heroku rake db:push I succeed. Do I need to install something on the Heroku server? ...

Deploying RoR app to Heroku with Sqlite3 fails

I'm trying to deploy my first app to Heroku. I'm using Sqlite as the database. As far as I know Heroku doesn't use Sqlite - it switches to Postgres in the backend. When I'm deploying I get the following error: /usr/ruby1.8.7/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/runtime.rb:64:in `require': no such file to load -- sq...

Rails and Heroku PGError: column does not exist

This page I have been developing for my app has been working fine locally (using sqllite3) but when I push it to Heroku, which uses PostgreSQL I get this error: NeighborhoodsController# (ActionView::Template::Error) "PGError: ERROR: column \"isupforconsideration\" does not exist\nLINE 1: ... \"photos\" WHERE (neighborhood = 52 AND is...

When using Git or SSH copy / remote login, etc, should we re-use the same SSH keys or create new ones every time?

With the increasing use of Git or SSH copying or login, we can use just 1 pair of public and private key, or we probably can create different pairs on different machines, such as 1 for the notebook and 1 for the desktop, and 1 for the Virtual Machine. Should we use 1 pair or should we use multiple pairs? If we use just 1 pair, then we ...

Getting Heroku logs for past few weeks

I'm trying to get the production logs for the past few weeks off of heroku but when I do heroku logs, it just returns a few lines showing the production log for today. Any way to get heroku logs for the past few weeks? Thanks. ...

Add SSH Key to Heroku (Noob Question following railstutorial.org)

Beeing new to programming I'm trying to learn RoR using railstutorial.org and ran into a problem in chapter 1.4.1 (http://railstutorial.org/book#sec:1.4.1). Whentrying to add my SSH key the following happend: Basti@Basti-PC ~ $ heroku keys:add <internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- readline (...

acts-as-taggable-on on Heroku

I've been using the acts-as-taggable-on for tagging in my development app, but when I push it to Heroku, I get a nasty error: ActionView::TemplateError (PGError: ERROR: relation "tags" does not exist : SELECT tags.*, taggings.tags_count AS count FROM "tags" JOIN (SELECT taggings.tag_id, COUNT(taggings.tag_id) AS tags_count FROM "taggi...

Development workflow for Heroku?

I have used Heroku to push up my already coded Rails applications. But now I wonder how the workflow would look like if I start coding a new Rails application from scratch. For example if I use their addons (MongoHQ, Redis, Websolr, Sendgrid etc) in my application code, then I guess I shouldn't install MongoDB, Redis, Solr, Mail server...

Paperclip ruby on rails s3 to_file method

I'm very confused here as to why paperclip isn't working for me. When accessing a previously saved file on s3 for processing this method of the paperclip s3 storage class causes an error: def to_file style = default_style return @queued_for_write[style] if @queued_for_write[style] filename = path(style).split(".") extname...

Access to paperclip temp file when using s3 storage option on heroku

I am using the Paperclip gem to resize upload photos and store them on amazon S3. I need access to the resized photo to also pass along to another web service, during the lifecycle of the upload request. I suspect there is a temp file created somewhere the imagemagik uses before the photo is uploaded to s3. How can I get access to it....

Elementary Rails deployment

I am trying to deploy my app on Rails for the first time using Heroku. I have spent quite a lot of time but there's a gap somewhere. Git: created private repo, pushed to git successfully Heroku: created free app and pushed successfully (but app 'crashes') Local: rake db:schema:dump #success rake db:schema:load RAILS_ENV=production #...

An interesting little 500 error

I just tried to deploy to Heroku and got a 500 server error. heroku logs: Started GET "/" for ##.##.###.### at 2010-10-14 17:59:34 -0700 Processing by WelcomeController#index as HTML Rendered welcome/index.html.erb within layouts/index (2.3ms) Completed in 3ms ActionView::Template::Error (can't convert nil into String): 5: <...

Hosting a Server Written in C++

I want to host a server program written in C++. What are the best/easiest hosting options out there for native apps? I know for Rails there are EngineYard and Heroku. Is there something similar for native apps? I've looked at Amazon EC2, but that looks too heavy-duty to start off (I may be wrong). ...