Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
Code style and adjust copyright
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongerig committed Dec 22, 2017
1 parent 9e2330e commit 8e97de7
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 24 deletions.
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# License
Copyright (C) 2015-2017 Dominik Pfaffenbauer
Copyright (C) 2015-2017 w-vision AG

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# W-Vision Pimcore Deployer
# w-vision Pimcore Deployer

This library gives you a clean example of how to use deployer with Pimcore 5.*.

Expand Down
27 changes: 15 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
{
"name": "w-vision/pimcore-deployer",
"description": "Pimcore Deployer Scripts",
"type": "library",
"license": "GPLv3",
"authors": [
{
"name": "Dominik Pfaffenbauer",
"email": "[email protected]"
}
],
"require": {
"deployer/deployer": "^6.0"
"name": "w-vision/pimcore-deployer",
"type": "library",
"license": "GPLv3",
"description": "Pimcore Deployer Scripts",
"homepage": "https://github.com/w-vision/pimcore-deployer",
"authors": [
{
"name": "w-vision AG",
"email": "[email protected]",
"homepage": "https://www.w-vision.ch",
"role": "Web Development Agency"
}
],
"require": {
"deployer/deployer": "^6.0"
}
}
20 changes: 14 additions & 6 deletions deploy.sample.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
<?php
/**
* w-vision
*
* LICENSE
*
* For the full copyright and license information, please view the LICENSE.md
* file that is distributed with this source code.
*
* @copyright Copyright (c) 2017 w-vision AG (https://www.w-vision.ch)
*/

namespace Deployer;

require __DIR__ . '/vendor/deployer/deployer/recipe/symfony3.php'; //Comes form deployer.phar
require __DIR__ . '/vendor/w-vision/pimcore-deployer/recipes/pimcore.php';
require __DIR__ . '/vendor/w-vision/pimcore-deployer/recipes/yarn.php';
require __DIR__ . '/vendor/w-vision/pimcore-deployer/recipes/npm.php';

host('domain.com')
->user('username')
Expand All @@ -14,11 +24,10 @@
->stage('dev')
->set('branch', 'master');

set('repository', 'ssh://git@server:22/vendor/project.git');
// Can be done via http as well.
set('repository', 'ssh://git@server:22/vendor/project.git');

//There maybe some files or directories missing.

// There may be some files or directories missing.
set('default_stage', 'dev');
set('shared_files', [
'app/config/parameters.yml',
Expand All @@ -43,8 +52,7 @@
});*/

// If you want to use a custom composer file, use this
/*
set('bin/composer', function() {
/*set('bin/composer', function() {
return '{{bin/php}} composer.phar';
});*/

Expand Down
15 changes: 14 additions & 1 deletion recipes/npm.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
<?php
/**
* w-vision
*
* LICENSE
*
* For the full copyright and license information, please view the LICENSE.md
* file that is distributed with this source code.
*
* @copyright Copyright (c) 2017 w-vision AG (https://www.w-vision.ch)
*/

namespace Deployer;

Expand All @@ -12,11 +22,14 @@
run('cp -R {{previous_release}}/node_modules {{release_path}}');
}
}
run("cd {{release_path}} && {{bin/npm}} install");

run('cd {{release_path}} && {{bin/npm}} install');
});

task('npm:production', function() {
run('cd {{release_path}} && {{bin/npm}} run build');
});

task('npm:develop', function() {
run('cd {{release_path}} && {{bin/npm}} run dev');
});
12 changes: 11 additions & 1 deletion recipes/pimcore.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
<?php
/**
* w-vision
*
* LICENSE
*
* For the full copyright and license information, please view the LICENSE.md
* file that is distributed with this source code.
*
* @copyright Copyright (c) 2017 w-vision AG (https://www.w-vision.ch)
*/

namespace Deployer;

task('deploy:pimcore:install-classes', function() {
run("{{bin/php}} {{release_path}}/bin/console deployment:classes-rebuild -c");
run('{{bin/php}} {{release_path}}/bin/console deployment:classes-rebuild -c');
});

task('deploy:pimcore:migrate', function() {
Expand Down
14 changes: 12 additions & 2 deletions recipes/yarn.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
<?php
/**
* w-vision
*
* LICENSE
*
* For the full copyright and license information, please view the LICENSE.md
* file that is distributed with this source code.
*
* @copyright Copyright (c) 2017 w-vision AG (https://www.w-vision.ch)
*/

namespace Deployer;

Expand All @@ -7,9 +17,9 @@
});

task('deploy:yarn:install', function() {
run("cd {{release_path}} && {{bin/yarn}} install");
run('cd {{release_path}} && {{bin/yarn}} install');
});

task('deploy:yarn:encore', function() {
run("cd {{release_path}} && {{bin/yarn}} run encore production");
run('cd {{release_path}} && {{bin/yarn}} run encore production');
});

0 comments on commit 8e97de7

Please sign in to comment.