Skip to content

Commit 1c1daad

Browse files
committed
adding other missed param and warming up cache on deploy so it's available
1 parent 2c29303 commit 1c1daad

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

.symfony.cloud.yaml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,8 @@ hooks:
3535
(>&2 SYMFONY_ENV=prod app/console cache:clear --no-warmup)
3636
(>&2 SYMFONY_ENV=prod app/console cache:warmup)
3737
38-
# Keep the cache in a persistent directory
39-
# If your cache can be read-only, you can skip this step
40-
(>&2 mkdir -p tmp/cache && mv app/cache/prod tmp/cache/)
41-
4238
deploy: |
4339
set -x -e
4440
45-
# "install" cache
46-
# If your cache can be read-only, you can skip these steps
47-
rm -rf app/cache/prod
48-
#cp -Rp tmp/bootstrap.php.cache app/bootstrap.php.cache
49-
cp -Rp tmp/cache/prod app/cache/
41+
(>&2 SYMFONY_ENV=prod app/console cache:clear --no-warmup)
42+
(>&2 SYMFONY_ENV=prod app/console cache:warmup)

app/config/parameters.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@
33
if (getenv('github_token')) {
44
$container->setParameter('github_token', getenv('github_token'));
55
}
6+
7+
if (getenv('symfony_docs_secret')) {
8+
$container->setParameter('symfony_docs_secret', getenv('symfony_docs_secret'));
9+
}

0 commit comments

Comments
 (0)