-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #141 from famoser/maintenance
Replace deployer with agnes
- Loading branch information
Showing
15 changed files
with
689 additions
and
265 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 |
---|---|---|
|
@@ -13,7 +13,7 @@ APP_SECRET=somesecret | |
# Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url | ||
# For an SQLite database, use: "sqlite:///%kernel.project_dir%/var/data.sqlite" | ||
# Configure your db driver and server_version in config/packages/doctrine.yaml | ||
DATABASE_URL=sqlite:///%kernel.project_dir%/var/data.sqlite | ||
DATABASE_URL=sqlite:///%kernel.project_dir%/var/persistent/data.sqlite | ||
###< doctrine/doctrine-bundle ### | ||
|
||
###> symfony/swiftmailer-bundle ### | ||
|
@@ -26,6 +26,3 @@ MAILER_URL=null://localhost | |
CONTACT_EMAIL=[email protected] | ||
ADMIN_EMAIL=[email protected] | ||
|
||
FREE_PERIOD_DAYS=31 | ||
REGISTER_FEE=1500 | ||
YEARLY_FEE=500 |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -45,3 +45,5 @@ yarn-error.log | |
/phpunit.xml | ||
.phpunit.result.cache | ||
###< phpunit/phpunit ### | ||
|
||
.config |
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
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,45 @@ | ||
agnes: | ||
version: 4 | ||
|
||
build: | ||
path: .build | ||
|
||
github: | ||
api_token: '%env(GITHUB_API_TOKEN)%' | ||
repository: famoser/nodika | ||
|
||
config: | ||
path: .config | ||
repository: | ||
url: [email protected]:agnes-config/famoser-nodika | ||
|
||
data: | ||
shared_folders: | ||
- var/persistent | ||
|
||
files: | ||
- path: .env.local | ||
required: true | ||
|
||
scripts: | ||
build: | ||
hook: build | ||
script: | ||
- composer install --verbose --prefer-dist --no-interaction --no-dev --optimize-autoloader --no-scripts | ||
- yarn install | ||
- yarn run encore production | ||
- rm -rf node_modules | ||
|
||
deploy: | ||
hook: deploy | ||
script: | ||
- php bin/console cache:clear -n | ||
- find var -type d -print0 | xargs -0 chmod 0755 | ||
- find var -type f -print0 | xargs -0 chmod 0644 | ||
- php bin/console doctrine:migrations:migrate -n | ||
|
||
rollback: | ||
hook: rollback | ||
script: | ||
- cd $PREVIOUS_RELEASE_PATH && export MIGRATE_TO=$(php bin/console doctrine:migrations:latest) | ||
- php bin/console doctrine:migrations:migrate $MIGRATE_TO -n |
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
Oops, something went wrong.