# http A proxy server that will start all subdomain servers and a proxy server to route requests to the correct subdomain based on the URL. ## How to setup a subdomain server 1. Create a new package in the `packages` directory. 2. Add a `subdomain:start` script to the `package.json` file of the new package. 3. Optionally add a `subdomain:dev` script for development (so you can add things like hot reloading). 4. It uses the directory name of the package to serve the subdomain. ## How to setup a cron job In your package's `package.json`, add a script that starts with `cron:` followed by the cron schedule. **ALL TIMES ARE IN UTC!!!** **ALL TIMES USE THE 24 HOUR FORMAT!!!** | Script Name | Description | | --------------------- | ---------------------------------------------------------------------------------- | | `cron:constantly` | Runs every minute | | `cron:hourly` | Runs every hour | | `cron:daily` | Runs at midnight | | `cron:weekly` | Runs on Sunday | | `cron:monthly` | Runs on the 1st of month | | `cron:hourly@0:25` | Runs every hour at 25 minutes past the hour (the hour is ignored) | | `cron:daily@1:20` | Runs daily at 1:20 AM UTC | | `cron:weekly@12:00` | Runs weekly on Sunday at 12:00 PM UTC | | `cron:monthly@13:00` | Runs monthly on the 1st at 1:00 PM UTC | | `cron:daily #comment` | If you need multiple crons with the same schedule, make them unique with a comment | You can view all the cron job statuses at http://theworkshop.cc