Displaying 20 results from an estimated 7000 matches similar to: "Lighttpd Restart Script"
2006 Dec 14
3
reaper spawner
Hi,
Anyone know where i can find out more info on Reaper/Spawner.
Currently, every time i add a new account on my production machine, i
have to restart the whole server. After about 150 accounts, this puts a
real strain on the server (it takes 3 full minutes before i can access
any site on the server).
I think reaper/spawner is my answer, but i am havving trouble figuring
out how to use it.
2006 May 18
3
capistrano and Dreamhost issue
Hi,
i''m striving to capistranize a foo app on DH.
Everything is hosted on DH to simplify a bit :
- svn repository (http access)
- the application
- the DB
I used the recipe of Jamis Buck modified by Geoffrey Grosenbach which
you can find here : http://nubyonrails.com/pages/shovel_dreamhost
I did the least modifications possible. As recommended.
1) When I launch the
2005 Dec 30
6
Unable to get the domain in my routes.rb to map custom route tables per domain
I have tried all night trying to find a way to get the host name which is
currently being used within my routes.rb file to do some case/when switching
for specific domains such as this
cgi = ActionController::CgiRequest.new(CGI.new)
case cgi.domain(1)
when /www/
map.connect '''', :controller => ''public'', :action =>
''index''
when
2006 Jan 23
1
Spawner -p and --port not working?
Hi everyone,
I''m trying to set a port with spawner, and it''s not working:
ruby /var/rails/ldapadmin/current/script/process/spinner -c
/var/rails/ldapadmin/current/script/process/spawner --port=7000 -i 4
-d
spinner: invalid option: --port=7000
Same with -p:
ruby /var/rails/ldapadmin/current/script/process/spinner -c
/var/rails/ldapadmin/current/script/process/spawner -p 7000
2006 Mar 02
2
A nasty evening with dispatch.fcgi
Hello all. Time for an all night installation
campfire (no pun intended) story.
I just helped a customer migrate from a single box
to a 5 box system.
2 Lighty
2 FCGI
1 DB
Everything went quite well. I scripted everything
so it would be easy to add more boxes in the future.
3 scripts, one for each box type above.
Then came time to get the site working. :-)
Lighty came up easily.
The DB came up
2006 Jan 19
12
Switchtower isn''t restarting lighttpd
I''ve got switchtower set up, and it seems to work fine except for one
problem: It doesn''t successfully restart lighttpd. I have the
following task in my deploy.rb file:
desc "Restart the web server"
task :restart, :roles => :app do
sudo "/usr/local/etc/rc.d/lighttpd.sh restart"
end
This is on a FreeBSD system, so it''s using the rc script to
2006 Mar 23
4
ANN: capistrano-runit-tasks 0.2.0
I''d like to announce the second release of capistrano-runit-tasks,
available from http://rubyforge.org/projects/cappy-runit/
It now supports:
* File based templates
* sv as the service control command in addition to runsvctrl
* A much simpler interface for creating additional services.
More work still needs to be done though!
== TODO
* Allow add_service to create more than one
2006 Apr 17
9
Reload an application without restarting the Server?
Hi, I would like to set up a "shared hosting"-like rails environment on
a linux (+Apache1.3 +FastCGI +MySQL) machine. As we all know, rails
provides support for different environments.
Now I would like to enable my "users" to switch individual applications
between development and production mode. In theory, all they have to do
is to add
2006 Mar 07
5
Capistrano: command never finishes?
Hi,
I have created a small :restart task to overwrite the default one:
task :restart, :roles => :app do
sudo "/etc/init.d/lighttpd stop"
sudo "/etc/init.d/lighttpd start"
end
This works fine and lighty does restart, but the last command never
finishes, so I never return to the prompt. Here''s my output:
cap restart
loading configuration
2006 Mar 18
2
ANN: capistrano-runit-tasks 0.1.0
I''d like to announce the first release of capistrano-runit-tasks.
This came about as I wanted to use runit rather than spinner/spawner/
reaper on my memory limited VPS but should be useable for any setup.
From the README:
This library extends Capistrano to allow processes to be supervised
using the
runit package. It replaces some of the standard tasks with runit
versions and
2005 Dec 01
12
Difficult process of restarting SCGI, Lighttpd, Apache, sessions
I''ve managed to get Rails working using Apache->Lighttpd->SCGI. Restarting everything is really
difficult. This appears to be the process:
- stop apache
- stop lighttpd
- stop scgi
- make sure scgi still isn''t running (it sometimes does) - if it is, kill it
- delete all session files (they often cause permission errors)
- start scgi
- start apache
- start lighttpd
- cross
2006 Apr 12
5
Production deployment speed "wakeup" issue
The deployment scenario...
Apache2 on shared host, proxying to lighttpd, which has 3 external
fcgis running on localhost. The fcgis are managed by spinner/spawner.
We''re noticing a definite speed issue on "first requests" to this site.
For example:
* Hit the site a few times, paying no attention to load time
* Wait x period of time (haven''t quite narrowed this
2006 Jan 03
7
switchtower, windows and dispatch.fcgi
I just setup switchtower and I am very happy with it. Just one thing is
giving me some headache: My development machine is windows and my deployment
host is Unix. Each time I deploy I need to make dispatch.fcgi executable. I
wrote my own task for that. But does there exist any smarter way to get this
automated ? I think Subversion offers some possiblity to declare a file as
executable, but no idea
2006 Jan 18
4
Canada on Rails - Schedule Released
We are extremely pleased to announce that we have finalized the schedule
(http://canadaonrails.com/yvr06-schedule.html) for the upcoming Ruby on
Rails conference in Vancouver, BC on April 13th - 14th, 2006.
There are 15 speakers packed into two full days of presentations ranging
from 30 minutes to 90 minute keynotes.
Presentation topics include:
* Where will Rails be riding next?
* Enterprise
2006 Apr 09
16
Rails 1.1.2: A tiny fix for gem dependencies
The new gem version dependency system from Rails 1.1.1 needed a few
tweaks to work properly and to stop throwing meaningless warnings.
This tiny release makes up for that. To install:
* gem install rails
* rake rails:update:configs (to get the latest config/boot.rb)
This release also signals our new commitment to do more tiny releases
from the stable branch, which only gets bug fixes. So it will
2006 Feb 17
7
FCGI hanging w/ lighttpd and RoR 1.0 (need to kill -9)
Hi, everyone,
I''m currently running a Rails 1.0 project using lighttpd-1.4.9 behind
Apache 2 on RHEL 3. My fcgi process (I''m only using one right now)
always hangs after some time, which is something I haven''t experienced
before (e.g., I''ve run this same app. on a TextDrive account and it
works fine there).
So ... any ideas on what could be causing this?
2006 Aug 11
9
Getting Really Started with Rails - Tutorial styled Slides Available
For those that missed out joining the amazing turnout of ~70 people here in
Vancouver for the mini-workshop I did on the 27th last month, I am making
available the 30 slides I used for the presentation.
The slides were used in conjunction with me demonstrating it via command
line. Alot was learned by both attendees, and quite possibly even more so by
myself while teaching the material.
I created
2006 Jul 24
22
which webserver to use in production?
Apologies in advance if this ignites a war of comflicting opinions....
I''m a few days away from going live with my first RoR application. It
is completely database centric and each user will have his own queries
so cacheing will not really help.
I have a dedicated linux server being built by my hosting provider and I
need to tell them which webserver to use. The databse is MySQL
2006 Feb 25
10
Performance issue.. after a while
Hello,
I have an project running on a dedicated server:
Debian, P4 CPU 3.00GHz, 1GB RAM,
ruby 1.8.4 (2005-12-24) [x86_64-linux],
rails (1.0.0), activerecord (1.13.2)
lighttpd-1.4.10 + fastcgi + mysql 5.0
7 dispatchers.
The project is a game, so a typical user would visit 100+ pages.
When the server is busiest, it gets 35-40k requests/hour.
For some misterious reason after a number of hours the
2006 Feb 28
2
FerretOnRails
I have spent a couple hours researching the FerretOnRails and acts_as_ferret
plugin, and am very pleased with what I see so far.
My question is how to have my application, with multiple models:
Speakers
Talks
News
etc..
With all varying :string and :text column types, to be able to use a single
index by which I can produce a search on.
I will go through each of the models and add a