diff --git a/deploy.php b/deploy.php new file mode 100644 index 0000000..d9f84b0 --- /dev/null +++ b/deploy.php @@ -0,0 +1,58 @@ +stage('staging') + ->user('yvan') + ->forwardAgent() + ->set('shared_files',[ + 'config/autoload/local.php', + 'config/autoload/doctrine.local.php', + 'data/staging.db', + ]) + ->set('php_service_name', 'php7.2-fpm') + ->set('deploy_path', '/mnt/apps/granprize'); + + +desc('Reload PHP-FPM service'); +task('php-fpm:reload', function () { + // The user must have rights for restart service + // /etc/sudoers: username ALL=NOPASSWD:/bin/systemctl restart php-fpm.service + run('sudo service {{php_service_name}} reload'); +}); //->onlyOn('alfheim'); +after('deploy:symlink', 'php-fpm:reload'); + + +desc('Deploy your project'); +task('deploy', [ + 'deploy:prepare', + 'deploy:lock', + 'deploy:release', + 'deploy:update_code', + 'deploy:shared', + 'deploy:writable', + 'deploy:vendors', + 'deploy:clear_paths', + 'deploy:symlink', + 'deploy:unlock', + 'cleanup', +]); + +after('deploy', 'success'); diff --git a/public/styles/main.css b/public/styles/main.css index e9a8263..d050498 100644 --- a/public/styles/main.css +++ b/public/styles/main.css @@ -23,6 +23,10 @@ a:hover { text-decoration: underline; } +header a:hover { + text-decoration: none; +} + article, section { font-family: 'Raleway', sans-serif; @@ -192,7 +196,7 @@ section.article { section.article > .sidebar { display: none; } - + .footer-content { margin: auto; width: 780px; @@ -403,7 +407,7 @@ a.awardee, section.awardee { display: grid; grid-column-gap: 20px; - grid-template-rows: 80px 100px auto; + grid-template-rows: 60px 120px auto; grid-template-areas: "image year" "image name" diff --git a/templates/layout/default.phtml b/templates/layout/default.phtml index 2731d26..7e27ab5 100644 --- a/templates/layout/default.phtml +++ b/templates/layout/default.phtml @@ -15,16 +15,20 @@
+
+ Gran Prize
+
+