Re: Missing the Rails 2.3.5 gem.

2010-06-02 Thread Oren Teich
This problem is detailed here:

http://blog.heroku.com/archives/2010/5/25/rails_2_3_6_dependency_issues/

Oren

On Wed, Jun 2, 2010 at 3:04 PM, giorgio  wrote:

> I get the same message but I dont understand your solution!
>
> I have in my Gemfile:
> gem "rails", ">= 2.3.5", :require => "rails"
> But I still get the message "Missing the Rails 2.3.5 gem. Please `gem
> install -v=2.3.5 rails" .
>
> Just to make it more confusing the app is a clone of another one which
> works fine on Heroku...
>
> Am I missing something? Do I just need to scrap the Heroku app and
> start again?
>
> Cheers
> George
>
> --
> You received this message because you are subscribed to the Google Groups
> "Heroku" group.
> To post to this group, send email to her...@googlegroups.com.
> To unsubscribe from this group, send email to
> heroku+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/heroku?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: Missing the Rails 2.3.5 gem.

2010-06-02 Thread giorgio
I get the same message but I dont understand your solution!

I have in my Gemfile:
gem "rails", ">= 2.3.5", :require => "rails"
But I still get the message "Missing the Rails 2.3.5 gem. Please `gem
install -v=2.3.5 rails" .

Just to make it more confusing the app is a clone of another one which
works fine on Heroku...

Am I missing something? Do I just need to scrap the Heroku app and
start again?

Cheers
George

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: A few Delayed Job questions

2010-06-02 Thread Nick Quaranto
I believe it's Delayed::Job.all , not DelayedJob

-Nick

On Tue, Jun 1, 2010 at 8:57 PM, empika  wrote:

> Hallo
>
> Does anyone know the answer to the following questions...
>
> Is it possible to get a list of currently waiting delayed jobs?
> Opening a heroku console and trying to find them give me an error:
>
> >> ds = DelayedJob.all
> LoadError: Expected /disk1/home/slugs/XYZ/mnt/vendor/plugins/
> delayed_job/lib/delayed_job.rb to define DelayedJob
>
> Also, do delayed jobs get profiled on New Relic? I may need to start
> running quite a few soon, although im not sure how ill be able to tell
> that only running one job is not enough to handle all the users across
> my app.
>
> Thanks
> Edd
>
> --
> You received this message because you are subscribed to the Google Groups
> "Heroku" group.
> To post to this group, send email to her...@googlegroups.com.
> To unsubscribe from this group, send email to
> heroku+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/heroku?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Howto: Use the Apigee addon on a local development environment

2010-06-02 Thread empika
Hey

I asked support this question and got this answer back, I thought
others may find it useful:

http://gist.github.com/421561

if ENV['APIGEE_TWITTER_API_ENDPOINT']
  @@twitter_api = ENV['APIGEE_TWITTER_API_ENDPOINT']
else
  # Get this value from Heroku.
  # Once you have enabled the addon, boot up the 'heroku console' and
run the following:
  # puts ENV['APIGEE_TWITTER_API_ENDPOINT']
  # this will spit out your correct api endpoint
  @@twitter_api = "twitter-api.appXYZABC.apigee.com"
end

# build the endpoint based on the add-on supplied configvar
@endpoint = 'http://' + @@twitter_api

# initialize with sample variables
ctoken = 'your_consumer_token'
csecret = 'your_consumer_secret'
atoken, asecret = ["14142354-mykey", "mysecret"]

oauth = Twitter::OAuth.new(ctoken, csecret, :api_endpoint =>
@endpoint)
oauth.authorize_from_access(atoken, asecret)
client = Twitter::Base.new(oauth)
@user = client.user('heroku') # calls user/show on @heroku via Apigee

-Edd

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



A few Delayed Job questions

2010-06-02 Thread empika
Hallo

Does anyone know the answer to the following questions...

Is it possible to get a list of currently waiting delayed jobs?
Opening a heroku console and trying to find them give me an error:

>> ds = DelayedJob.all
LoadError: Expected /disk1/home/slugs/XYZ/mnt/vendor/plugins/
delayed_job/lib/delayed_job.rb to define DelayedJob

Also, do delayed jobs get profiled on New Relic? I may need to start
running quite a few soon, although im not sure how ill be able to tell
that only running one job is not enough to handle all the users across
my app.

Thanks
Edd

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: Spree 0.10.2 can't start on Heroku

2010-06-02 Thread Keenan Brock
Hi,

I'm not a spree person, but I have ported frameworks to heroku. (e.g.: loved by 
less)

not sure if this was already answered

Why not copy the default theme to the target spot on your own?
Seems the startup code would not copy if it it already existed.
And if it did copy it, just add the File.exist code and submit a patch.

see who calls 
spree-0.10.2/lib/plugins/extension_patches/lib/asset_copy.rb
and see if you can get around it

--Keenan

On Jun 2, 2010, at 10:03 AM, Olivier R wrote:

> Heroku apps don't have write privileges which causes this exception on
> startup. Is there a way to go around this?
> 
> Check this out: http://paddock.heroku.com
> 
> /home/slugs/196124_7d3212a_92f9/mnt/.gems/gems/spree-0.10.2/lib/spree/
> file_utilz.rb:61:in `mirror_files': Could not copy /home/slugs/
> 196124_7d3212a_92f9/mnt/.gems/gems/spree-0.10.2/vendor/extensions/
> theme_default/public/images/wrapper-back-2.png to /disk1/home/slugs/
> 196124_7d3212a_92f9/mnt/public/images/wrapper-back-2.png:
> (RuntimeError)
> Read-only file system - /disk1/home/slugs/196124_7d3212a_92f9/mnt/
> public/images/wrapper-back-2.png
> 
> Best regards,
> Olivier
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Heroku" group.
> To post to this group, send email to her...@googlegroups.com.
> To unsubscribe from this group, send email to 
> heroku+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/heroku?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: Missing the Rails 2.3.5 gem.

2010-06-02 Thread thechrisoshow
Fixed thanks to David @ heroku!

Added the following to the .gems file, and it worked a treat:

 rails --version 2.3.8

On Jun 2, 2:08 pm, thechrisoshow  wrote:
> Blast!  That's annoying.
>
> In the mean time I've updated the Rails version to 2.3.8 and the Rack
> version to 1.1.0.
>
> -Chris
>
> On Jun 2, 1:54 pm, "Matthew A. Brown"  wrote:
>
> > I had the same problem; after lots of head-banging, I just pushed my code to
> > a new app instance (on bamboo) and it worked fine. Migrating my old instance
> > to bamboo didn't help though so it wasn't purely an aspen/bamboo issue.
>
> > On Jun 2, 2010 8:50 AM, "thechrisoshow"  wrote:
>
> > Hi,
>
> > I pushed a new gem in my .gem file recently, and now I'm getting the
> > error message:
>
> > "You need to explicitly specify your Rails version on your Gemfile
> > or .gems file."
> > "Missing the Rails 2.3.5 gem. Please `gem install -v=2.3.5 rails`,
> > update your RAILS_GEM_VERSION setting in config/environment.rb for the
> > Rails version you do have installed, or comment out RAILS_GEM_VERSION
> > to use the latest version installed."
>
> > Any suggestions?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Heroku" group.
> > To post to this group, send email to her...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > heroku+unsubscr...@googlegroups.com .
> > For more options, visit this group 
> > athttp://groups.google.com/group/heroku?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: root_path not being recognized

2010-06-02 Thread Leo Godin
I found the problem.  My local copy of the app did not have an
index.html but the master git repository did.  I did a 'git rm public/
index.html' then pushed to master and heroku.  That fixed the problem.

On May 26, 11:25 am, Leo Godin  wrote:
> Hi All,
> I have an apphttp://incompetence-tracker.heroku.com.  In this app
> I've mapped root to :controller => :home_page, :action
> => :home_page_index.  When I go to that URL I see the default rails
> page that you see when creating a new app.  Everything works as
> expected using WEBrick as the server.  It's only when I push to heroku
> that I see the problem.
>  help would be greatly appreciated.
> thanks,
> Leo
>
> I can go to  http://incompetence-tracker.heroku.com/home_pageand that
> shows the home_page I expect
> This is the line in routes.rb
>  map.root :controller => :home_page, :action => :home_page_index
>
> Here is a pasty to the full routes.rbhttp://pastie.org/978495

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Hostnames in requests

2010-06-02 Thread Maximilian Mack
Hi all,
where can i find the real ip from the user?

I have the hostname ssl addon, and with request.env['HTTP_X_REAL_IP'] and 
request.ip i did not get it. 

Does nginx redirect the ip to the app?

grettings Max

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Spree 0.10.2 can't start on Heroku

2010-06-02 Thread Olivier R
Heroku apps don't have write privileges which causes this exception on
startup. Is there a way to go around this?

Check this out: http://paddock.heroku.com

/home/slugs/196124_7d3212a_92f9/mnt/.gems/gems/spree-0.10.2/lib/spree/
file_utilz.rb:61:in `mirror_files': Could not copy /home/slugs/
196124_7d3212a_92f9/mnt/.gems/gems/spree-0.10.2/vendor/extensions/
theme_default/public/images/wrapper-back-2.png to /disk1/home/slugs/
196124_7d3212a_92f9/mnt/public/images/wrapper-back-2.png:
(RuntimeError)
Read-only file system - /disk1/home/slugs/196124_7d3212a_92f9/mnt/
public/images/wrapper-back-2.png

Best regards,
Olivier

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: Missing the Rails 2.3.5 gem.

2010-06-02 Thread thechrisoshow
Blast!  That's annoying.

In the mean time I've updated the Rails version to 2.3.8 and the Rack
version to 1.1.0.

-Chris

On Jun 2, 1:54 pm, "Matthew A. Brown"  wrote:
> I had the same problem; after lots of head-banging, I just pushed my code to
> a new app instance (on bamboo) and it worked fine. Migrating my old instance
> to bamboo didn't help though so it wasn't purely an aspen/bamboo issue.
>
> On Jun 2, 2010 8:50 AM, "thechrisoshow"  wrote:
>
> Hi,
>
> I pushed a new gem in my .gem file recently, and now I'm getting the
> error message:
>
> "You need to explicitly specify your Rails version on your Gemfile
> or .gems file."
> "Missing the Rails 2.3.5 gem. Please `gem install -v=2.3.5 rails`,
> update your RAILS_GEM_VERSION setting in config/environment.rb for the
> Rails version you do have installed, or comment out RAILS_GEM_VERSION
> to use the latest version installed."
>
> Any suggestions?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Heroku" group.
> To post to this group, send email to her...@googlegroups.com.
> To unsubscribe from this group, send email to
> heroku+unsubscr...@googlegroups.com .
> For more options, visit this group 
> athttp://groups.google.com/group/heroku?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: Missing the Rails 2.3.5 gem.

2010-06-02 Thread Matthew A. Brown
I had the same problem; after lots of head-banging, I just pushed my code to
a new app instance (on bamboo) and it worked fine. Migrating my old instance
to bamboo didn't help though so it wasn't purely an aspen/bamboo issue.

On Jun 2, 2010 8:50 AM, "thechrisoshow"  wrote:

Hi,

I pushed a new gem in my .gem file recently, and now I'm getting the
error message:

"You need to explicitly specify your Rails version on your Gemfile
or .gems file."
"Missing the Rails 2.3.5 gem. Please `gem install -v=2.3.5 rails`,
update your RAILS_GEM_VERSION setting in config/environment.rb for the
Rails version you do have installed, or comment out RAILS_GEM_VERSION
to use the latest version installed."

Any suggestions?

--
You received this message because you are subscribed to the Google Groups
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to
heroku+unsubscr...@googlegroups.com .
For more options, visit this group at
http://groups.google.com/group/heroku?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Missing the Rails 2.3.5 gem.

2010-06-02 Thread thechrisoshow
Hi,

I pushed a new gem in my .gem file recently, and now I'm getting the
error message:

"You need to explicitly specify your Rails version on your Gemfile
or .gems file."
"Missing the Rails 2.3.5 gem. Please `gem install -v=2.3.5 rails`,
update your RAILS_GEM_VERSION setting in config/environment.rb for the
Rails version you do have installed, or comment out RAILS_GEM_VERSION
to use the latest version installed."

Any suggestions?

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Re: Spree 0.10.2 can't start

2010-06-02 Thread Ben Lovell
On 2 June 2010 13:18, Olivier R  wrote:

> Heroku apps don't have write privileges which causes this exception on
> startup. Is there a way to go around this?
>
> Check this out: http://paddock.heroku.com
>
> /home/slugs/196124_7d3212a_92f9/mnt/.gems/gems/spree-0.10.2/lib/spree/
> file_utilz.rb:61:in `mirror_files': Could not copy /home/slugs/
> 196124_7d3212a_92f9/mnt/.gems/gems/spree-0.10.2/vendor/extensions/
> theme_default/public/images/wrapper-back-2.png to /disk1/home/slugs/
> 196124_7d3212a_92f9/mnt/public/images/wrapper-back-2.png:
> (RuntimeError)
> Read-only file system - /disk1/home/slugs/196124_7d3212a_92f9/mnt/
> public/images/wrapper-back-2.png
>
> Best regards,
>
> Olivier
>
>
Have you seen:

http://github.com/RSpace/spree-heroku

Cheers,
Ben

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.



Spree 0.10.2 can't start

2010-06-02 Thread Olivier R
Heroku apps don't have write privileges which causes this exception on
startup. Is there a way to go around this?

Check this out: http://paddock.heroku.com

/home/slugs/196124_7d3212a_92f9/mnt/.gems/gems/spree-0.10.2/lib/spree/
file_utilz.rb:61:in `mirror_files': Could not copy /home/slugs/
196124_7d3212a_92f9/mnt/.gems/gems/spree-0.10.2/vendor/extensions/
theme_default/public/images/wrapper-back-2.png to /disk1/home/slugs/
196124_7d3212a_92f9/mnt/public/images/wrapper-back-2.png:
(RuntimeError)
Read-only file system - /disk1/home/slugs/196124_7d3212a_92f9/mnt/
public/images/wrapper-back-2.png

Best regards,

Olivier

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to her...@googlegroups.com.
To unsubscribe from this group, send email to 
heroku+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.