Skip to content

Instantly share code, notes, and snippets.

@koehn
Created December 16, 2015 15:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koehn/c8c8e33388677e09352a to your computer and use it in GitHub Desktop.
Save koehn/c8c8e33388677e09352a to your computer and use it in GitHub Desktop.
Required for my `/etc/init.d/diaspora` init script. Put this into `/home/diaspora/diaspora/diaspora-init`.
#!/bin/bash --login
shopt -s expand_aliases
export RAILS_ENV=production
export DB=postgres
cd /home/diaspora/diaspora
./script/server
@xenotropic
Copy link

Also, a reminder to to make it executable! (I forgot and took me a few minutes to find my mistake). As of 3-May-2018 using Diaspora 0.7.4.1 this works for me for startup but not stop. It reports [OK] but the service keeps running.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment