* deploy config added
* profile text position shifted upwards * home link added to the header
This commit is contained in:
parent
2f3577b614
commit
16f44ce6cf
58
deploy.php
Normal file
58
deploy.php
Normal 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');
|
||||||
@ -23,6 +23,10 @@ a:hover {
|
|||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
header a:hover {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
article,
|
article,
|
||||||
section {
|
section {
|
||||||
font-family: 'Raleway', sans-serif;
|
font-family: 'Raleway', sans-serif;
|
||||||
@ -403,7 +407,7 @@ a.awardee,
|
|||||||
section.awardee {
|
section.awardee {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-column-gap: 20px;
|
grid-column-gap: 20px;
|
||||||
grid-template-rows: 80px 100px auto;
|
grid-template-rows: 60px 120px auto;
|
||||||
grid-template-areas:
|
grid-template-areas:
|
||||||
"image year"
|
"image year"
|
||||||
"image name"
|
"image name"
|
||||||
|
|||||||
@ -15,13 +15,17 @@
|
|||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<header class="main">
|
<header class="main">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
|
<a href="<?= $this->serverurl('/') ?>">
|
||||||
Gran Prize
|
Gran Prize
|
||||||
<img class="granprize-logo" src="<?= $this->serverurl('/img/logo/gran_prize_logo.png') ?>">
|
<img class="granprize-logo" src="<?= $this->serverurl('/img/logo/gran_prize_logo.png') ?>">
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="description">
|
<div class="description">
|
||||||
|
<a href="<?= $this->serverurl('/') ?>">
|
||||||
Interdisciplinary<br>
|
Interdisciplinary<br>
|
||||||
Innovative<br>
|
Innovative<br>
|
||||||
Award
|
Award
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
<nav class="main"><?= $this->navigation() ?></nav>
|
<nav class="main"><?= $this->navigation() ?></nav>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user