-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add production import config and update project settings
- Loading branch information
Showing
3 changed files
with
38 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#yamlPreprocessor=on | ||
project: | ||
name: recipe-twill | ||
tags: | ||
- zerops-recipe | ||
- production | ||
|
||
services: | ||
- hostname: app | ||
type: [email protected] | ||
buildFromGit: https://github.com/zeropsio/recipe-twill | ||
enableSubdomainAccess: true | ||
envSecrets: | ||
APP_KEY: <@generateRandomString(<32>)> | ||
APP_DEBUG: false | ||
APP_ENV: production | ||
|
||
- hostname: db | ||
type: postgresql@16 | ||
mode: HA | ||
priority: 10 | ||
|
||
- hostname: redis | ||
type: keydb@6 | ||
mode: HA | ||
priority: 10 | ||
|
||
- hostname: storage | ||
type: object-storage | ||
objectStorageSize: 2 | ||
objectStoragePolicy: public-read | ||
priority: 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,12 +8,12 @@ project: | |
services: | ||
- hostname: app | ||
type: [email protected] | ||
buildFromGit: https://github.com/krls2020/twill | ||
buildFromGit: https://github.com/zeropsio/recipe-twill | ||
enableSubdomainAccess: true | ||
envSecrets: | ||
APP_KEY: <@generateRandomString(<32>)> | ||
envVariables: | ||
KRLS_TEST: projectimportenv | ||
APP_DEBUG: true | ||
APP_ENV: development | ||
|
||
- hostname: db | ||
type: postgresql@16 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,8 +26,6 @@ zerops: | |
siteConfigPath: site.conf.tmpl | ||
envVariables: | ||
APP_NAME: ZeropsTwill | ||
APP_DEBUG: true | ||
APP_ENV: development | ||
APP_LOCALE: en | ||
APP_FAKER_LOCALE: en_US | ||
APP_FALLBACK_LOCALE: en | ||
|
@@ -79,14 +77,13 @@ zerops: | |
AWS_USE_PATH_STYLE_ENDPOINT: true | ||
|
||
initCommands: | ||
# - php artisan view:cache | ||
# - php artisan config:cache | ||
# - php artisan route:cache | ||
|
||
- sudo -E -u zerops -- zsc execOnce initialize -- php artisan twill:install -n | ||
- sudo -E -u zerops -- zsc execOnce initializeadmin -- php artisan twill:superadmin [email protected] zerops | ||
- sudo -E -u zerops -- zsc execOnce ${appVersionId} -- php artisan migrate --isolated --force | ||
- sudo -E -u zerops -- zsc execOnce initializeSeed -- php artisan db:seed --force | ||
# - php artisan view:cache | ||
# - php artisan config:cache | ||
# - php artisan route:cache | ||
# - php artisan optimize | ||
healthCheck: | ||
httpGet: | ||
|