Skip to content

Instantly share code, notes, and snippets.

@christianchristensen
Created February 19, 2012 06:34
Show Gist options
  • Save christianchristensen/1862263 to your computer and use it in GitHub Desktop.
Save christianchristensen/1862263 to your computer and use it in GitHub Desktop.

$ cat makefile

server:
	drush rs --watchdog
clock:
	while true; do drush cron -v; sleep 10s; done

$ cat Procfile

web: make server
clock: make clock

$ foreman start

web.1     | started with pid 32669
clock.1   | started with pid 32671
web.1     | drush rs --watchdog
clock.1   | while true; do drush cron -v; sleep 10s; done
clock.1   | Initialized Drupal 7.12 root directory at                               [notice]
...

Ref: Unix process model - forman man page

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