Displaying 20 results from an estimated 500 matches similar to: "is there really a restart task in switchtower? How do you invoke it?"
2007 Apr 17
5
How to change the default encoding for dynamic pages
Hello,
I''m trying to write a rails application serves by mongrel and using
accentuated characters in the .rhtml page. But Mongrel replace them by ''?'' .
It works fine for static pages by defining the charset to iso-8859-1 in the
mongrel_mime.yml
But how to change the default encoding (seems to be UTF-8) for the dynamic
pages ?
thanks for your help.
-------------- next
2007 Feb 27
3
mongrel_cluster and Monit
On one of my development servers mongrel dies when idle for any length
of time. Since I''ve not been able to solve that problem I thought I''d
route around it by using monit to kick things when necessary.
My monitrc contains the following...
--------------------------------------------------------------------------------
check process mongrel_8310 with pidfile
2007 Jan 12
3
Content-Length: 0
While trying to debug a goofy XML loading issue in IE, I''ve found
that Mongrel (latest) returns Content-Type: 0 with every request on a
particular (CentOS 4) server, yet not on my local (OS X) box. These
both access identical Rails apps. This seems like a clue, but thought
I''d ask here if for some reason this is expected behavior. Both
running Ruby 1.8.4. Both return
2006 May 20
1
Rails Day 2006 -- 24 hour programming contest on July 17th
I just launched the website for Rails Day 2006, the second annual 24
hour Ruby on Rails development contest. Teams of one to three people
have 24 hours to develop a Rails application from scratch. When the
contest is over, entries are judged, and cool prizes are awarded.
http://www.railsday2006.com/
Sponsoring Rails Day is a great way to promote your company to the
geek demographic. If
2006 Feb 22
2
sudo in switchtower and security
I''m attempting to deploy a rails application using switchtower. My IT guys
are refusing to give me sudo for a user changeable script. I really can''t
argue with their logic. If I have sudo for a script that I can update, well,
I can do most anything I want.
They are suggesting I create a cgi that performs the same function. Since
the cgi would run as www-data (this is a debian
2004 Apr 07
2
rsync from solaris to cygwin on xp, certain files always copied
I'm rsyncing a directory on a linux box to a win xp pro with cygwin. Some of the
files are always copied, or so it appears by the progress report and the fact
that a dot version of the file is created and grows to the full size before
completion. Note, the source file is not changing - it is a static file sitting
in a directory and is not modified. Nor is the corresponding file in the target
2005 Dec 27
2
Praise Switchtower (plus a quick question)
Switchtower is really cool once you get it going. Quick question, I do
a:
% rake deploy
% rake remote_exec ACTION=symlink_pictures
...but what''s the easiest way to combine the two in a single command?
Thanks
CM
--
Posted via http://www.ruby-forum.com/.
2006 Feb 19
10
Switchtower - unitialized constant
Just loaded up Switchtower 1.0 today, via gems. I''m on OS X (10.4.5),
with ruby and friends installed via darwinports in opt/local.
After installing ST, I switchtowerized my app, set up the deploy recipe,
then ran:
rake remote_exec ACTION=setup
When I do, i get this error:
rake aborted!
uninitialized constant SwitchTower
Obviously, this happens with any of the tasks in ST (like
2005 Dec 20
7
wrong id for activerecord object when using :joins in mysql
I''m using a find with a :joins clause, like this:
:joins => "JOIN table_b ON table_b.id=table_b_id"
The records returned are used in a scaffold generated list page. The edit,
show, and destroy links are getting the wrong id. They are getting the id of
the table b record.
When I run the query using mysql, I see that the query returns *2* id
columns, the id of the main
2006 Mar 25
4
Can''t quite get Rails working on Mac, help please :).
I''ve followed the install the install guide on
http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger
and it seemed to work. And I''ve been following the Instant Gratifiction
guide in Chapter four in Agile Web Development with Rails book. I''m in
terminal and I type -
cd work (everything works fine) then
rails demo (everything seems to work) then
cd
2006 Feb 23
2
SwitchTower remote_exec migrate
Hello
I''m doing rake remote_exec ACTION=migrate and I get an output with
servers []:
loading configuration
c:/ruby/lib/ruby/gems/1.8/gems/switchtower-0.10.0/lib/switchtower/recipes/standard.rb
loading configuration ./config/deploy.rb
executing task migrate
executing "cd /var/www/catalyst/current && rake RAILS_ENV=production
migrate"
servers: []
processing command
2006 Feb 07
6
Switchtower not working due to openssl not found
I''m struggling to get switchtower working, and from other posts about
it I know it has something to do with ruby binding to open ssl. I''m
just not sure what I should recompile/reinstall to get things to work.
running: "rake remote_exec ACTION=setup" gives me --->
...executing "mkdir -p -m 775 /usr/apps/hello-rails/releases
/usr/apps/hello-rails/shared/system
2005 Dec 22
4
Switchtower problem - `sysread'': bignum too big to convert into `long'' (RangeError)
I''m trying to set up switchtower, following the info in the Manual,
but am getting this error when I run "rake remote_exec ACTION=setup":
servers: ["cantona.dnswatchdog.com"]
/usr/lib/ruby/gems/1.8/gems/net-ssh-1.0.3/lib/net/ssh/transport/packet-stream.rb:203:in
`sysread'': bignum too big to convert into `long'' (RangeError)
from
2006 Feb 14
18
Does shared hosting work? Anywhere?
I moved a rails application to textdrive using their low-cost shared plan.
Once on textdrive my app would display ''proxy errors'' periodically. Hitting
reload
seemed to be all that was needed to get past the proxy error.
After discussions with their support people I decided the proxy errors were
being caused by apache server restarts -- because there were many of us
sharing
one
2006 Jan 27
6
Switchtower deploy error
I''m trying to deploy a rails app with no success.
I can execute: ''rake remote_exec ACTION=setup''
but when I try to execute : ''rake deploy''
I got this error:
loading configuration c:/ruby/lib/ruby/gems/1.8/gems/switchtower-0.10.0
/lib/switchtower/recipes/standard.rb
loading configuration ./config/deploy.rb
executing task deploy
transaction: start
2006 Jan 04
2
SwitchTower deployment
I''ve been trying to configure SwitchTower to perform deployment of my app to
a Dreamhost server. I can run rake remote_exec ACTION=setup just fine but
rake deploy keeps giving me errors when its checking out the latest revision
from the Subversion repository on the same Dreamhost server. It displays
errors like this:
loading configuration c:/ruby/lib/ruby/gems/1.8/gems/switchtower-0.1
2006 Feb 15
12
Does your *shared* hosting account work without errors?
Does your *shared* hosting account work without errors?
I''m interested in both positive and negative reports. If you are willing,
please contribute
- name of the hosting service
- how long you have used them
- your experience ("flawless!", "it''s crap!")
You *do not* need to reply saying your VPS service works great. This is
about *shared* hosting
2007 Mar 10
5
Mongrel Hangs After Idle Period
I had posted a thread couple of weeks ago whereby mongrel just mysteriously
stops interacting with my application after an idle period...usually less
than 8 hours.
http://rubyforge.org/pipermail/mongrel-users/2007-February/002908.html
I had hoped this would go away after a few upgrades but to know avail.
Interestingly, the process does not die...it still accepts HTTP requests but
does not
2006 Feb 01
2
Trouble with migrate over Switchtower
>From my blog:
http://clickablebliss.com/blog/2006/02/01/trouble_with_migrate_over_switchto
wer/
> Lately though I?ve run into an issue
> trying to run migrations over Switchtower.
> So I?ll prepare a migration and commit it to the repository. I?ll then do a
> deploy to get the latest version up on the production server. Next, I?ll run
> the following to tell the production
2006 Feb 14
3
is shared hosting evil?
I moved a rails application to textdrive using their low-cost shared plan.
Once on textdrive my app would display ''proxy errors'' periodically. Hitting
reload
seemed to be all that was needed to get past the proxy error.
After discussions with their support people I decided the proxy errors were
being caused by apache server restarts -- because there were many of us
sharing
one