Skip to content

Commit

Permalink
Add production import config and update project settings
Browse files Browse the repository at this point in the history
  • Loading branch information
krls2020 committed Oct 25, 2024
1 parent ff671be commit 82e7c5f
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 9 deletions.
32 changes: 32 additions & 0 deletions zerops-project-import-production.yml
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
6 changes: 3 additions & 3 deletions zerops-project-import.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 3 additions & 6 deletions zerops.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 82e7c5f

Please sign in to comment.