# This is an example forman configure file for bobcat
# You can adjust the procs based on your personal development need
#
# 1. Install forego `brew install forego` https://github.com/ddollar/forego
# 2. Copy this file to Procfile
# 3. Configure the tasks
# 3. Start all procs by `forego start`
#
# NOTICE: 1. All the logs are under /log, you can simply check log by `tail -f log/sidekiq.log`.
#         2. The error messages should better be piped to stdout, that's what `2>&1 >file` for.
#         3. forego supports multiple processes invoke `forego start -c all=1, worker=2` this will start 2 worker process

# WEB server
# default way to start server
# server log is piped to stdout by default

# Server with hotload
web: env DISABLE_UNICORN_KILLER=1 REACT_HOT=1 PRODUCT_NAME=sxl RACK_ENV=none RAILS_ENV=development bundle exec unicorn -p 3000 -c unicorn_dev.rb

# Server with no hotload
# web: env DISABLE_UNICORN_KILLER=1 PRODUCT_NAME= RACK_ENV=none RAILS_ENV=development bundle exec unicorn -p 3000 -c unicorn_dev.rb

# WORKER, you can adjust the queues based on your need
worker: env PRODUCT_NAME= bundle exec sidekiq -C config/sidekiq.yml 2>&1 >log/worker.log

# THEME, watch mode
theme: bundle exec strk_build_manifests --watch 2>&1 >log/theme.log
# page_data: strk_build_pages_data

# OpenResty
nginx: env CUSTOM_HOST= openresty -p devs/nginx -c nginx.conf

# If you need to bind custom host:
# nginx: env CUSTOM_HOST=192.168.75.128 openresty -p devs/nginx -c nginx.conf
