Skip to content

Commit

Permalink
Separated Composer packages
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbertsoft committed Apr 26, 2023
1 parent 312056f commit 320283e
Show file tree
Hide file tree
Showing 176 changed files with 4,189 additions and 2,700 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/.idea/
/.mage/
/.vscode/
/public/base-packages/
/public/p/
/public/p2/
/public/satis/
Expand Down
4 changes: 4 additions & 0 deletions .mage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ magephp:
- ./public/packages.json
- ./stubs
- ./tests
- ./tmp
- ./tools
- ./var
- ./LICENSE
Expand All @@ -30,15 +31,18 @@ magephp:
- exec: { cmd: "echo \"APP_ENV=prod\" >> .env.local", desc: "Create .env.local" }
- composer/install: { flags: '--no-dev --no-progress --optimize-autoloader' }
on-deploy:
- exec: { cmd: 'mkdir -p tmp/base-packages', desc: 'Create tmp/base-packages folder' }
- exec: { cmd: 'mkdir -p var', desc: 'Create var folder' }
- exec: { cmd: 'mkdir -p var/satis', desc: 'Create var/satis folder' }
- exec: { cmd: 'test -d ~/site/shared/base-packages || mkdir -p ~/site/shared/base-packages', desc: 'Create shared/base-packages folder' }
- exec: { cmd: 'test -d ~/site/shared/public/satis || mkdir -p ~/site/shared/public/satis', desc: 'Create shared/public/satis folder' }
- fs/link: { from: "../../../shared/.env.local", to: ".env.local" }
- fs/link: { from: "../../../../shared/public/satis", to: "public/satis" }
- fs/link: { from: "satis/p", to: "public/p" }
- fs/link: { from: "satis/p2", to: "public/p2" }
- fs/link: { from: "satis/aliases.json", to: "public/aliases.json" }
- fs/link: { from: "satis/packages.json", to: "public/packages.json" }
- fs/link: { from: "../../../../../shared/base-packages", to: "tmp/base-packages/packages" }
- exec: { cmd: "sqlite3 ~/site/mage/current/var/gettr.db '.backup var/gettr.db'", desc: "Copy DB" }
- exec: { cmd: "php-restart", desc: "Restart PHP and reset OPcache" }
- exec: { cmd: "php ./bin/console doctrine:migrations:sync-metadata-storage --no-interaction", desc: "Synchronize DB Migrations" }
Expand Down
3 changes: 3 additions & 0 deletions cnf/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ location ~ (?!^\/\.well-known)\/\. {
allow 213.144.157.127;
allow 2001:1620:c7f:111::/64;

# Allow GitHub for webhook testing
allow 140.82.115.0/24;

# Block abusing IPs
deny 212.95.122.212;

Expand Down
4 changes: 4 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@
"ext-iconv": "*",
"ext-json": "*",
"ext-sqlite3": "*",
"ext-zip": "*",
"ext-zlib": "*",
"composer/composer": "^2.2",
"composer/semver": "^3.3",
"doctrine/collections": "^1.6",
"doctrine/dbal": "^3.3",
Expand All @@ -62,6 +64,8 @@
"symfony/dependency-injection": "^6.2",
"symfony/dotenv": "^6.2",
"symfony/expression-language": "^6.2",
"symfony/filesystem": "^6.2",
"symfony/finder": "^6.2",
"symfony/flex": "^2.2",
"symfony/form": "^6.2",
"symfony/framework-bundle": "^6.2",
Expand Down
Loading

0 comments on commit 320283e

Please sign in to comment.