-
Notifications
You must be signed in to change notification settings - Fork 1
Run Diasporas Components
If you fear ./script/server ;)
If you want to use production mode prepend every command here with RAILS_ENV=production
,
config/script_server.yml is not respected with this way!
Be sure to prepend every command with DB=…
if you did at installation time.
If you compiled redis from source run redis-server
to start redis on the default port 6379. It uses a config file, normally /etc/redis.conf or /etc/redis/redis.conf defining ports and other stuff. If you installed via a package manager there's most likely an init script you want to use.
Run bundle exec thin start
from the root Diaspora directory. This will start the app server.
It will run on port 3000 by default. If you want it to be available on port 80, either run it on port 80 directly (probably unwise), or use your webserver of choice (we use nginx) to proxy port 443 at your domain name to thin at port 3000 or over a socket. See config/sprinkle/conf/nginx.conf and config/thin.yml in the repo for an example thin config and nginx server stanza.
This is absolutely needed unless you want to use a different appserver like mod_passenger for example.
To start the resque worker run the following command:
QUEUE=* bundle exec rake resque:work
This is also essential unless you turn on single_process_mode in config/diaspora.yml which is absolutely unrecommended for production environments. Resque is used for time intensive jobs like sending mail, sending and receiving messages from other pods etc. You can disable that by turning "mount_resque_web" to false in your diaspora.yml.