Compare commits
10 commits
Author | SHA1 | Date | |
---|---|---|---|
d70029951f | |||
|
80ef8caf20 | ||
d2612882c8 | |||
cc5e0b6b27 | |||
|
a6e4b205f7 | ||
4e5b69450e | |||
|
a543fd2a4a | ||
e70157067c | |||
2d31f7cd76 | |||
1c172ec454 |
9 changed files with 4109 additions and 4483 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -243,3 +243,6 @@ temp/
|
||||||
# .pnp.*
|
# .pnp.*
|
||||||
|
|
||||||
# End of https://www.toptal.com/developers/gitignore/api/node,phpunit,symfony,composer,yarn
|
# End of https://www.toptal.com/developers/gitignore/api/node,phpunit,symfony,composer,yarn
|
||||||
|
|
||||||
|
# Snyk
|
||||||
|
.dccache
|
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
|
@ -28,7 +28,7 @@ node {
|
||||||
|
|
||||||
stage('Deploy staging') {
|
stage('Deploy staging') {
|
||||||
// Deploy to staging host
|
// Deploy to staging host
|
||||||
sh 'vendor/bin/dep deploy staging'
|
sh 'vendor/bin/dep deploy lq5xi.ftp.infomaniak.com --no-interaction'
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
"ext-ctype": "*",
|
"ext-ctype": "*",
|
||||||
"ext-iconv": "*",
|
"ext-iconv": "*",
|
||||||
"composer/package-versions-deprecated": "1.11.99.1",
|
"composer/package-versions-deprecated": "1.11.99.1",
|
||||||
|
"deployer/deployer": "^7.0",
|
||||||
"doctrine/doctrine-bundle": "^2.3",
|
"doctrine/doctrine-bundle": "^2.3",
|
||||||
"doctrine/doctrine-migrations-bundle": "^3.1",
|
"doctrine/doctrine-migrations-bundle": "^3.1",
|
||||||
"doctrine/orm": "^2.8",
|
"doctrine/orm": "^2.8",
|
||||||
|
@ -17,26 +18,26 @@
|
||||||
"presta/sitemap-bundle": "^3.2",
|
"presta/sitemap-bundle": "^3.2",
|
||||||
"samayo/bulletproof": "4.0.1",
|
"samayo/bulletproof": "4.0.1",
|
||||||
"sensio/framework-extra-bundle": "^6.1",
|
"sensio/framework-extra-bundle": "^6.1",
|
||||||
"symfony/asset": "5.4.*",
|
"symfony/asset": "^5.4.20",
|
||||||
"symfony/console": "5.4.*",
|
"symfony/console": "^5.4.20",
|
||||||
"symfony/dotenv": "5.4.*",
|
"symfony/dotenv": "^5.4.20",
|
||||||
"symfony/filesystem": "5.4.*",
|
"symfony/filesystem": "^5.4.20",
|
||||||
"symfony/flex": "^1.3.1",
|
"symfony/flex": "^1.3.1",
|
||||||
"symfony/form": "5.4.*",
|
"symfony/form": "^5.4.20",
|
||||||
"symfony/framework-bundle": "5.4.*",
|
"symfony/framework-bundle": "^5.4.20",
|
||||||
"symfony/mailer": "5.4.*",
|
"symfony/mailer": "^5.4.20",
|
||||||
"symfony/monolog-bundle": "^3.7",
|
"symfony/monolog-bundle": "^3.7",
|
||||||
"symfony/proxy-manager-bridge": "5.4.*",
|
"symfony/proxy-manager-bridge": "^5.4.20",
|
||||||
"symfony/security-bundle": "5.4.*",
|
"symfony/security-bundle": "^5.4.20",
|
||||||
"symfony/twig-bundle": "5.4.*",
|
"symfony/twig-bundle": "^5.4.20",
|
||||||
"symfony/validator": "5.4.*",
|
"symfony/validator": "^5.4.20",
|
||||||
"symfony/webpack-encore-bundle": "^1.11",
|
"symfony/webpack-encore-bundle": "^1.11",
|
||||||
"symfony/yaml": "5.4.*",
|
"symfony/yaml": "^5.4.20",
|
||||||
"symfonycasts/reset-password-bundle": "^1.7",
|
"symfonycasts/reset-password-bundle": "^1.7",
|
||||||
"symfonycasts/verify-email-bundle": "^1.4",
|
"symfonycasts/verify-email-bundle": "^1.4",
|
||||||
"twig/extra-bundle": "^2.12|^3.0",
|
"twig/extra-bundle": "^2.12|^3.0",
|
||||||
"twig/intl-extra": "^3.3",
|
"twig/intl-extra": "^3.3",
|
||||||
"twig/twig": "^2.12|^3.0"
|
"twig/twig": "^3.4.3"
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
"optimize-autoloader": true,
|
"optimize-autoloader": true,
|
||||||
|
@ -82,11 +83,10 @@
|
||||||
"extra": {
|
"extra": {
|
||||||
"symfony": {
|
"symfony": {
|
||||||
"allow-contrib": false,
|
"allow-contrib": false,
|
||||||
"require": "5.4.*"
|
"require": "^5.4.20"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"deployer/dist": "^6.8",
|
|
||||||
"symfony/browser-kit": "^5.4",
|
"symfony/browser-kit": "^5.4",
|
||||||
"symfony/css-selector": "^5.4",
|
"symfony/css-selector": "^5.4",
|
||||||
"symfony/debug-bundle": "^5.4",
|
"symfony/debug-bundle": "^5.4",
|
||||||
|
|
1837
composer.lock
generated
1837
composer.lock
generated
File diff suppressed because it is too large
Load diff
20
deploy.php
20
deploy.php
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
namespace Deployer;
|
namespace Deployer;
|
||||||
|
|
||||||
require 'recipe/symfony4.php';
|
require 'recipe/symfony.php';
|
||||||
|
|
||||||
// Project name
|
// Project name
|
||||||
set('application', 'pflaenz.li');
|
set('application', 'pflaenz.li');
|
||||||
|
@ -13,11 +13,11 @@ set('repository', 'ssh://git@git.thisfro.ch:222/thisfro/pflaenz.li.git');
|
||||||
set('git_tty', true);
|
set('git_tty', true);
|
||||||
|
|
||||||
set('bin/php', function() {
|
set('bin/php', function() {
|
||||||
return '/opt/php8.0/bin/php';
|
return '/opt/php8.2/bin/php';
|
||||||
});
|
});
|
||||||
|
|
||||||
set('bin/composer', function() {
|
set('bin/composer', function() {
|
||||||
return '/opt/php8.0/bin/composer2';
|
return '/opt/php8.2/bin/composer2';
|
||||||
});
|
});
|
||||||
|
|
||||||
// Shared files/dirs between deploys
|
// Shared files/dirs between deploys
|
||||||
|
@ -28,14 +28,14 @@ add('shared_dirs', ['public/uploads']);
|
||||||
add('writable_dirs', []);
|
add('writable_dirs', []);
|
||||||
|
|
||||||
// Set composer options
|
// Set composer options
|
||||||
set('composer_options', '{{composer_action}} --verbose --prefer-dist --no-progress --no-interaction --optimize-autoloader --no-scripts');
|
set('composer_options', '--verbose --prefer-dist --no-progress --no-interaction --optimize-autoloader --no-scripts');
|
||||||
|
|
||||||
// Hosts
|
// Hosts
|
||||||
host('beta.pflaenz.li')
|
host('lq5xi.ftp.infomaniak.com')
|
||||||
->user('lq5xi_thisfro')
|
->set('remote_user', 'lq5xi_thisfro')
|
||||||
->set('deploy_path', '~/sites/{{stage}}.{{application}}')
|
->set('deploy_path', '~/sites/{{stage}}.{{application}}')
|
||||||
->set('http_user', 'uid153060')
|
->set('http_user', 'uid153060')
|
||||||
->stage('beta');
|
->set('stage', 'beta');
|
||||||
|
|
||||||
// Tasks
|
// Tasks
|
||||||
|
|
||||||
|
@ -45,9 +45,9 @@ task('upload:build', function() {
|
||||||
|
|
||||||
// Build yarn locally
|
// Build yarn locally
|
||||||
task('deploy:build:assets', function (): void {
|
task('deploy:build:assets', function (): void {
|
||||||
run('yarn install');
|
runLocally('yarn install');
|
||||||
run('yarn encore production');
|
runLocally('yarn encore production');
|
||||||
})->local()->desc('Install front-end assets');
|
})->desc('Install front-end assets');
|
||||||
|
|
||||||
before('deploy:symlink', 'deploy:build:assets');
|
before('deploy:symlink', 'deploy:build:assets');
|
||||||
|
|
||||||
|
|
6681
package-lock.json
generated
6681
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -23,8 +23,8 @@
|
||||||
"test": "snyk test"
|
"test": "snyk test"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@snyk/protect": "^1.834.0",
|
||||||
"cookie-notice": "^1.3.6",
|
"cookie-notice": "^1.3.6",
|
||||||
"friendly-challenge": "^0.8.5",
|
"friendly-challenge": "^0.8.5"
|
||||||
"@snyk/protect": "^1.834.0"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -348,15 +348,9 @@
|
||||||
"symfony/polyfill-mbstring": {
|
"symfony/polyfill-mbstring": {
|
||||||
"version": "v1.22.1"
|
"version": "v1.22.1"
|
||||||
},
|
},
|
||||||
"symfony/polyfill-php73": {
|
|
||||||
"version": "v1.22.1"
|
|
||||||
},
|
|
||||||
"symfony/polyfill-php80": {
|
"symfony/polyfill-php80": {
|
||||||
"version": "v1.22.1"
|
"version": "v1.22.1"
|
||||||
},
|
},
|
||||||
"symfony/polyfill-php81": {
|
|
||||||
"version": "v1.23.0"
|
|
||||||
},
|
|
||||||
"symfony/polyfill-uuid": {
|
"symfony/polyfill-uuid": {
|
||||||
"version": "v1.22.1"
|
"version": "v1.22.1"
|
||||||
},
|
},
|
||||||
|
@ -404,9 +398,6 @@
|
||||||
"symfony/security-csrf": {
|
"symfony/security-csrf": {
|
||||||
"version": "v5.2.4"
|
"version": "v5.2.4"
|
||||||
},
|
},
|
||||||
"symfony/security-guard": {
|
|
||||||
"version": "v5.2.4"
|
|
||||||
},
|
|
||||||
"symfony/security-http": {
|
"symfony/security-http": {
|
||||||
"version": "v5.2.6"
|
"version": "v5.2.6"
|
||||||
},
|
},
|
||||||
|
|
|
@ -1598,9 +1598,9 @@ caniuse-api@^3.0.0:
|
||||||
lodash.uniq "^4.5.0"
|
lodash.uniq "^4.5.0"
|
||||||
|
|
||||||
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001286:
|
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001286:
|
||||||
version "1.0.30001287"
|
version "1.0.30001388"
|
||||||
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001287.tgz"
|
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001388.tgz"
|
||||||
integrity sha512-4udbs9bc0hfNrcje++AxBuc6PfLNHwh3PO9kbwnfCQWyqtlzg3py0YgFu8jyRTTo85VAz4U+VLxSlID09vNtWA==
|
integrity sha512-znVbq4OUjqgLxMxoNX2ZeeLR0d7lcDiE5uJ4eUiWdml1J1EkxbnQq6opT9jb9SMfJxB0XA16/ziHwni4u1I3GQ==
|
||||||
|
|
||||||
chalk@^2.0.0, chalk@^2.3.2, chalk@^2.4.2:
|
chalk@^2.0.0, chalk@^2.3.2, chalk@^2.4.2:
|
||||||
version "2.4.2"
|
version "2.4.2"
|
||||||
|
|
Reference in a new issue