Up and running
- Clone this repository
- Install Dependencies
- Configure all needed values
- Create database
php bin/console doctrine:database:create
- Create schema
php bin/console doctrine:schema:update --force
- Create a cron job to run
php bin/console swiftmailer:spool:send --env=prodfrequently This sends all the mails saved in the spool.
- Create a second cron job for
php bin/console app:delete-passed-planswhich should run once per day to delete old plans.
Run the testsuite with the following command:
Info: The tests will be executed against an new sqlite database, and will not alter any data of yours.
When merging into
develop travis automatically deploys to the test server.
To create a production release create a
tag. The new tag will automatically be deployed to production.
This applications has some commands that you need to setup as cron jobs. If you don't add these the app wont work as expected.
php bin/console swiftmailer:spool:send --env=prod
You need to run this one quite often. I run it every third minute.
*/3 * * * *
Delete old plans
php bin/console app:delete-passed-plans --dueDays=30 -e prod
This command should run at least once a day. It makes sense to it run at night.
Send shift reminders
php bin/console app:shift-reminder --days=2 -e prod
This command should run once a day. It makes sense to run it at night.
--days=NR_OF_DAYS_HERE option lets you define how many days before the shift the reminders
will be sent.