No problems with recognizing the arguments. I was having a problem and
just needed to put the ENV in parentheses as shown in the attached
code. The problem only exists on server startup. After that I can
restart the process using god and it works as expected. It seems like
it is trying to start up right away and needs to have a bit of a delay
before it initiates startup... Just not sure the best way to do that.

god config: https://gist.github.com/0d7d5b240094cb3f77a4
init file: https://gist.github.com/6b454a6763b4af5cf0f2

Hopfully the above code will lead to an answer..

Thanks,
Larry

On Mar 7, 3:09 pm, "Phi.Google" <[email protected]> wrote:
> Workling doesn't seem to pick up the arguments correctly, and always
> tries to use the development environment. We fixed this by adding the
> following block to the beginning of the workling_client script
>
> ARGV.each do |arg|
>   key = arg.split('=').first
>   value = arg.split('=').last
>   ENV[key]=value
> end
>
> Hope this helps
>
> ~Phi
>
> On Mar 4, 6:48 pm, lardawge <[email protected]> wrote:
>
> > I have god setup to start on boot via init file... it starts
> > starling... wont fire up workling, get these errors:
>
> > *** below you find the most recent exception thrown, this will be
> > likely (but not certainly) the exception that made the application
> > exit abnormally ***
> > #<Mysql::Error: Can't connect to local MySQL server through socket '/
> > var/run/mysqld/mysqld.sock' (2)>
> > *** below you find all exception objects found in memory, some of them
> > may have been thrown in your application, others may just be in memory
> > because they are standard exceptions ***
> > #<NoMemoryError: failed to allocate memory>
> > #<SystemStackError: stack level too deep>
> > #<fatal: exception reentered>
> > #<LoadError: no such file to load -- rubygems/defaults/
> > operating_system>
> > #<LoadError: no such file to load -- daemons>
> > #<Mysql::Error: Can't connect to local MySQL server through socket '/
> > var/run/mysqld/mysqld.sock' (2)>
> > #<Mysql::Error: Can't connect to local MySQL server through socket '/
> > var/run/mysqld/mysqld.sock' (2)>
>
> > If I then restart god it works fine.  Suggestions?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"god.rb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/god-rb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to