File tree Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 1
1
name : carson-bot
2
2
3
- type : php:7.3
3
+ type : php:7.2
4
4
5
5
runtime :
6
6
extensions :
@@ -35,8 +35,15 @@ hooks:
35
35
(>&2 SYMFONY_ENV=prod app/console cache:clear --no-warmup)
36
36
(>&2 SYMFONY_ENV=prod app/console cache:warmup)
37
37
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
+
38
42
deploy : |
39
43
set -x -e
40
44
41
- (>&2 SYMFONY_ENV=prod app/console cache:clear --no-warmup)
42
- (>&2 SYMFONY_ENV=prod app/console cache:warmup)
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/
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- if (getenv ('github_token ' )) {
4
- $ container ->setParameter ('github_token ' , getenv ('github_token ' ));
3
+ if (getenv ('GITHUB_TOKEN ' )) {
4
+ $ container ->setParameter ('github_token ' , getenv ('GITHUB_TOKEN ' ));
5
5
}
6
6
7
- if (getenv ('symfony_docs_secret ' )) {
8
- $ container ->setParameter ('symfony_docs_secret ' , getenv ('symfony_docs_secret ' ));
7
+ if (getenv ('SYMFONY_DOCS_SECRET ' )) {
8
+ $ container ->setParameter ('symfony_docs_secret ' , getenv ('SYMFONY_DOCS_SECRET ' ));
9
9
}
You can’t perform that action at this time.
0 commit comments