Re: upload Rails app to Heroku / Herokugarden

2009-02-24 Thread Keenan Brock

Hi Egorbrandt

1 - Heroku is running a custom version of rails.

If you change your config/environment.rb to say ruby version 2.1, then  
that should clear it up.

The only way to change files on heroku is by git add ; git commit; git  
push
2 - not sure.

Best of luck,
Keenan

On Feb 24, 2009, at 4:03 AM, egorbrandt wrote:


 hello group,

 I'm trying to upload my Rails app

 1. to Heroku: the uploading was successful, however, the app failed to
 start. error: Missing the Rails 2.1.1 gem. Please `gem install -
 v=2.1.1 rails`,

 - I don't understand: I'm using Rails 2.1.1,  config/environment works
 fine locally
 - I might've been doing something wrong, but then, how do I change
 remote files on Heroku?

 2. to Herokugarden: after compressing the app into .rar archive when I
 try to upload this, there's an error page We're sorry... look in it
 shortly.' am I doing something wrong, or is it just me being
 impatient?

 I am new to (this way of) deploying, so could you help me out? I think
 the idea behind Heroku / Herokugarden is, what do you say, 'awesome'!

 thanks, egorbrandt
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Heroku group.
To post to this group, send email to heroku@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
-~--~~~~--~~--~--~---



Template is missing

2009-02-24 Thread nacho
every few days i have the same error in my herokugarden application:
Template is missing*Missing template log/index.erb in view path
/mnt/home/userapps/51762/app/views:
*

and i need to deploy again all the application

anyone have the same error?

-- 
// nacho
// sigo con mi terapia en http://cache.yestoall.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Heroku group.
To post to this group, send email to heroku@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
-~--~~~~--~~--~--~---



Initializers interfering with migration

2009-02-24 Thread Felix Holmgren
I added a table (Debug) to my app, and created rows in it in an initializer
script. When I pushed it to Heroku I couldn't run rake db:migrate, because
Heroku first wanted to initialize the environment, and since the
initialization tried to access the table that was about to be created, the
migration failed. Very frustrating.

I had to first comment out the line that used the table, push to heroku,
then migrate. I have not encountered this problem before, neither locally
nor on my former host. Unless I have failed to see something obvious (which
is quite likely), I would say this ranks as a bug.

Please enlighten me.

Also, what is the proper thing to do after pushing code that adds new
migrations? Running db:migrate? Or db:schema:load? (Having first dumped
schema.rb locally and checked it in.)

Is it ever necessary/proper to execute db:drop or db:create?

The db migrations have been the trickiest part of my Heroku experience so
far.

Felix

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Heroku group.
To post to this group, send email to heroku@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: Strange AR error

2009-02-24 Thread Keenan Brock
Felix,

So glad to be of help.

Microsoft always seems to put square brackets around column and table  
names so you'd see select * from [application].[dbo].[table] in their  
database definition language extracts ('DDL')

So it was worth a try.

You have answered that single quotes work for you - so no need to try  
the square brackets. (It is a database thing not a ruby thing)

Best of Luck

--Keenan

On Feb 24, 2009, at 3:57 PM, Felix Holmgren wrote:

 Hi Keenan,

 Also, the convention is to have underscores rather than camel case.

 This helped! Thank you very much. In the other class, where I let AR  
 create the SELECT and used a the symbol representation of the field  
 name (:firstPeer), AR apparently quoted the name correctly so that  
 postgre understood it. Now I understand why AR always puts quotes  
 around everything! So, in other words, this was not an AR error at  
 all... :)

 Just goes to show that you should always rely on AR as much as  
 possible.

 What happens if you use the ? Notation?
 
 :conditions=[firstPeer = ? or secondPeer = ?,
 @chatter.I'd,@chatter.id]

 Didn't try this, but it seems likely that that would have to be:

 :conditions=['firstPeer' = ? 

 (with extra quotes around firstPeer; can Ruby/Rails handle such  
 quotes-inside-quotes by the way; needs to be escaped?)

 Or use [[firstPeer] = ? or [secondPeer] = ?], ...

 What do these (inner) angular brackets do? Act as quotes?

 /F

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Heroku group.
To post to this group, send email to heroku@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: hoptoad / heroku

2009-02-24 Thread Jeremy Lightsmith
Actually, the heroku guys hooked me up, I thought I'd post here so google
could find it.  Basically it sounds like some weird environment thing that
heroku does exposes a bug in hoptoad.  The workaround is to add a line to
your hoptoad initializer, so it should look like this :

HoptoadNotifier.configure do |config|
  config.api_key = your key
  config.environment_filters  'async.' # workaround for hoptoad bug on
heroku
end

On Tue, Feb 24, 2009 at 4:38 AM, Ryan Lemmer ryanlem...@gmail.com wrote:

 Hi Jeremy, I also suffer from this ailment - did you resolve your problem?
 Ryan

 I was seeing this at doinlists and now I'm seeing it on another project.

 I installed hoptoad, I did the rake test and it successfully sent a message
 to hoptoad.  Then I pushed to heroku and did heroku rake hoptoad:test and
 it again successfully sent to hoptoad, this time with a production
 environment specified.  But when I create an exception in my site, on
 heroku, hoptoad never receives the notification.  but, if I look at the
 logs, the last thing after the exception is Hoptoad Success: Net::HTTPOK

 What's going on?

 Jeremy




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Heroku group.
To post to this group, send email to heroku@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
-~--~~~~--~~--~--~---



is there a way to capture the production logs back to a given time?

2009-02-24 Thread matt knox

I could periodically run heroku logs, but is there a better way to
get at the full logs for a stack 2 app?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Heroku group.
To post to this group, send email to heroku@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
-~--~~~~--~~--~--~---