Topic: heroku gems manifest deployment issue

Hi,

I have a problem with a Heroku app.

Since modifying my gems manifest I have been having trouble with my app starting.
The thing that confuses me is that if I create a fresh app and deploy it then it will run ok but if I try it with my existing app it shows dependency issues.

If I change the gems manifest and push it then shouldn't it reinstall the necessary gems and therefore give the same results as a fresh install?


Why does one complain about friendly id's dependencies and the other doesn't when they are both on the same heroku stack?

I am running rails 2.3.4 on aspen-mri-1.8.6 stack.

Here is my manifest file.

geokit
will_paginate --version '>= 2.3.12' --source http://gemcutter.org
aws-s3
friendly_id --version '~> 2.3'
fastercsv



Here is the result of a fresh install...

-----> Heroku receiving push
-----> Removing .DS_Store files
-----> Rails app detected
-----> WARNING: Detected Rails is not declared in either .gems or Gemfile
       Scheduling the install of Rails 2.3.4.
       See [url]http://docs.heroku.com/gems[/url] for details on specifying gems.

-----> Installing gem geokit from [url]http://rubygems.org[/url]
       Successfully installed geokit-1.5.0
       1 gem installed

-----> Installing gem will_paginate >= 2.3.12 from [url]http://gemcutter.org[/url], [url]http://rubygems.org[/url]
       Successfully installed will_paginate-2.3.14
       1 gem installed

-----> Installing gem aws-s3 from [url]http://rubygems.org[/url]
       Successfully installed xml-simple-1.0.12
       Successfully installed builder-2.1.2
       Successfully installed aws-s3-0.6.2
       3 gems installed

-----> Installing gem friendly_id ~> 2.3 from [url]http://rubygems.org[/url]
       
       ***********************************************************
       
         If you are upgrading friendly_id, please run
       
             ./script/generate friendly_id --skip-migration
       
         in your Rails application to ensure that you have the
         latest friendly_id Rake tasks.
       
       ***********************************************************
       
       Successfully installed activesupport-3.0.0
       Successfully installed i18n-0.4.1
       Successfully installed activemodel-3.0.0
       Successfully installed arel-1.0.1
       Successfully installed tzinfo-0.3.23
       Successfully installed activerecord-3.0.0
       Successfully installed friendly_id-2.3.4
       7 gems installed

-----> Installing gem fastercsv from [url]http://rubygems.org[/url]
       Successfully installed fastercsv-1.5.3
       1 gem installed

-----> Installing gem rails 2.3.4 from [url]http://rubygems.org[/url]
       Successfully installed activesupport-2.3.4
       Successfully installed activerecord-2.3.4
       Successfully installed actionpack-2.3.4
       Successfully installed actionmailer-2.3.4
       Successfully installed activeresource-2.3.4
       Successfully installed rails-2.3.4
       6 gems installed

       Compiled slug size is 11.5MB
-----> Launching.... done
       [url]http://xxx.heroku.com[/url] deployed to Heroku

To git@heroku.com:savinglanetest.git
 * [new branch]      HEAD -> master


And this is if I push to my site that has been running before.

-----> Heroku receiving push
-----> Removing .DS_Store files
-----> Rails app detected

-----> Installing gem geokit from [url]http://rubygems.org[/url]
       Successfully installed geokit-1.5.0
       1 gem installed

-----> Installing gem will_paginate >= 2.3.12 from [url]http://gemcutter.org[/url], [url]http://rubygems.org[/url]
       Successfully installed will_paginate-2.3.14
       1 gem installed

-----> Installing gem aws-s3 from [url]http://rubygems.org[/url]
       Successfully installed aws-s3-0.6.2
       1 gem installed

-----> Installing gem friendly_id ~> 2.3 from [url]http://rubygems.org[/url]
       ERROR:  Error installing friendly_id:
         activesupport requires Ruby version >= 1.8.7


error: hooks/pre-receive exited with error code 1
To git@heroku.com:xxx.git
 ! [remote rejected] HEAD -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:xxx.git'
rake aborted!

Any help is appreciated.

Cheers,

Tim

Re: heroku gems manifest deployment issue

I have solved the problem by specifying friendly_id -v "~> 3.1" in my gems manifest but still a little unsure why heroku acts this way with a new project or an existing one. I thought they would behave the same.

Cheers,

Tim