service alaveteli stop
/etc/nginx/sites-available/alaveteli_https
(or /etc/nginx/sites-available/alaveteli
if you are not running your site over SSL) file as per http://alaveteli.org/docs/installing/manual_install/#running-over-ssl so that nginx knows how to use the extra server processesservice alaveteli start
If you have configured thin to use more than one server, you will need to edit the Alaveteli upstream directive in your /etc/nginx/sites-enabled/alaveteli
file so that it has a server
line for each instance you are running (otherwise nginx will only know how to send requests to the first server process). Each address line needs to have a unique port number - start at 3000
and add 1
for each new process. For example if you started your cluster with 4 servers, the upstream directive should look like this:
upstream alaveteli {
server 127.0.0.1:3000;
server 127.0.0.1:3001;
server 127.0.0.1:3002;
server 127.0.0.1:3003;
}
Thin is a lighter-weight application server which can be run independently of a web server. Thin will be installed in the application bundle and used to run Alaveteli by default.
Run the following to get the server running:
cd /var/www/alaveteli bundle exec thin \ --environment=production \ --user=alaveteli \ --group=alaveteli \ --servers=1 \
<------- I assume this needs to be set to number different than "1"
start
By default the server listens on all interfaces. You can restrict it to the localhost interface by adding --address=127.0.0.1
The server should have told you the URL to access in your browser to see the site in action.
You can daemonize the process by starting it with the --daemonize
option.
Next we’ll actually create a SysVinit daemon to run the application, so stop any thin processes you’ve started here.
Miroslav Schlossberg Code for Croatia |
--
You received this message because you are subscribed to the Google Groups "Alaveteli Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alaveteli-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/alaveteli-dev/CAH3C4kteDAh7hKG7XF3ZT846PiTLZbtFdK0%3Dm%2BRJ8UhEpmS2WA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/alaveteli-dev/6d6d15f5-b8ad-4161-a124-ff7e382d0462n%40googlegroups.com.