Skip to content

Commit 29caf57

Browse files
committed
Adding support for scheduled tasks
1 parent 541ad5e commit 29caf57

File tree

11 files changed

+1968
-44
lines changed

11 files changed

+1968
-44
lines changed

.env

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,11 @@ BOT_USERNAME='carsonbot-test'
2525
###> knplabs/github-api ###
2626
#GITHUB_TOKEN=XXX
2727
###< knplabs/github-api ###
28+
29+
###> doctrine/doctrine-bundle ###
30+
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
31+
# For an SQLite database, use: "sqlite:///%kernel.project_dir%/var/data.db"
32+
# For a PostgreSQL database, use: "postgresql://db_user:[email protected]:5432/db_name?serverVersion=11&charset=utf8"
33+
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
34+
DATABASE_URL=mysql://db_user:[email protected]:3306/db_name?serverVersion=5.7
35+
###< doctrine/doctrine-bundle ###

.symfony.cloud.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,8 @@ hooks:
3131
deploy: |
3232
set -x -e
3333
(>&2 symfony-deploy)
34+
35+
crons:
36+
run_Tasks:
37+
spec: */5 * * * *
38+
cmd: croncape bin/console app:task:run

composer.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
"license": "MIT",
55
"require": {
66
"php": ">=7.2",
7+
"composer/package-versions-deprecated": "^1.11",
8+
"doctrine/doctrine-bundle": "^2.1",
9+
"doctrine/doctrine-migrations-bundle": "^3.0",
10+
"doctrine/orm": "^2.7",
711
"incenteev/composer-parameter-handler": "~2.0",
812
"knplabs/github-api": "^2.1",
913
"nyholm/psr7": "^1.3",

0 commit comments

Comments
 (0)