* deploy config added

* profile text position shifted upwards
* home link added to the header
This commit is contained in:
Danyi Dávid 2018-05-06 14:21:08 +02:00
parent 2f3577b614
commit 16f44ce6cf
3 changed files with 74 additions and 8 deletions

58
deploy.php Normal file
View File

@ -0,0 +1,58 @@
<?php
namespace Deployer;
require 'recipe/common.php';
// Configuration
set('ssh_type', 'native');
set('ssh_multiplexing', true);
set('repository', 'https://gogs.ragnarok.yvan.hu/SIGMA/swedishchamber-granprize.git');
set('shared_files', [
'config/autoload/local.php',
'config/autoload/doctrine.local.php',
'data/production.db',
]);
set('writable_dirs', []);
set('keep_releases', 3);
set('default_stage', 'staging');
// Servers
host('alfheim')
->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');

View File

@ -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"

View File

@ -15,16 +15,20 @@
<div class="app-container">
<header class="main">
<div class="title">
Gran Prize
<img class="granprize-logo" src="<?= $this->serverurl('/img/logo/gran_prize_logo.png') ?>">
<a href="<?= $this->serverurl('/') ?>">
Gran Prize
<img class="granprize-logo" src="<?= $this->serverurl('/img/logo/gran_prize_logo.png') ?>">
</a>
</div>
<div class="description">
Interdisciplinary<br>
Innovative<br>
Award
<a href="<?= $this->serverurl('/') ?>">
Interdisciplinary<br>
Innovative<br>
Award
</a>
</div>
</header>
<nav class="main"><?=$this->navigation()?></nav>
<nav class="main"><?= $this->navigation() ?></nav>
<?= $this->section('content') ?>
<footer class="main-footer">
<div class="footer-content">