From 3b55ca81dbf829d03e533569561d95befec300b4 Mon Sep 17 00:00:00 2001 From: evazion Date: Wed, 15 Sep 2021 06:14:19 -0500 Subject: [PATCH] Update Procfile. Usage: `gem install foreman` then `foreman start`. --- Procfile | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Procfile b/Procfile index f9cfe0664..a209f8abf 100644 --- a/Procfile +++ b/Procfile @@ -1,2 +1,14 @@ -unicorn: bin/rails server -p 3000 -jobs: bin/rake jobs:work \ No newline at end of file +# Usage: run `gem install foreman` then run `foreman start`. This will start +# all the processes needed to run Danbooru in a dev environment. +# +# Uncomment the `db` line to start a database (assuming you have Docker and +# don't have another database already running). +# +# http://blog.daviddollar.org/2011/05/06/introducing-foreman.html +# https://github.com/ddollar/foreman + +web: bin/rails server +worker: bin/rails jobs:work +clock: bin/rails danbooru:cron +webpack-dev-server: bin/webpack-dev-server +# db: docker run --rm -it --name danbooru-postgres --shm-size=8g -p 5432:5432 -e POSTGRES_USER=danbooru - e POSTRES_HOST_AUTH_METHOD=trust -v danbooru-postgres:/var/lib/postgresql/data evazion/postgres