Skip to content

Commit

Permalink
Allow phpdotenv on prod
Browse files Browse the repository at this point in the history
  • Loading branch information
jacklul committed Oct 16, 2023
1 parent 78ce7c5 commit 46da3dd
Show file tree
Hide file tree
Showing 3 changed files with 283 additions and 280 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ jobs:
env:
contents: '${{ secrets.CONFIG_PHP }}'

- name: Create .env
run: echo "$contents" > .env
env:
contents: '${{ secrets.DOT_ENV }}'

- name: Cache Composer dependencies
uses: actions/cache@v2
with:
Expand All @@ -39,7 +44,7 @@ jobs:
- name: Prepare files
run: |
mkdir upload/
cp -fr bin/ public/ src/ translations/ vendor/ config.php upload/
cp -fr bin/ public/ src/ translations/ vendor/ config.php .env upload/
rm -fr upload/public/.user.ini
- name: Deploy the application
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
"jacklul/monolog-telegram": "^2.0",
"longman/telegram-bot": "^0.78.0",
"memcachier/php-memcache-sasl": "^1.0",
"spatie/emoji": "^2.0"
"spatie/emoji": "^2.0",
"vlucas/phpdotenv": "^5.0"
},
"require-dev": {
"vlucas/phpdotenv": "^5.0",
"squizlabs/php_codesniffer": "^3.2"
},
"autoload": {
Expand Down
Loading

0 comments on commit 46da3dd

Please sign in to comment.