Skip to content

Commit b977b53

Browse files
authored
Merge pull request #52 from ByteInternet/add-laravel-wordpress-applicationtemplates
Add ApplicationTemplates for Wordpress & Laravel
2 parents d999a76 + 191f866 commit b977b53

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
3+
namespace Hypernode\DeployConfiguration\ApplicationTemplate;
4+
5+
use Hypernode\DeployConfiguration\Configuration;
6+
7+
class Laravel extends Configuration
8+
{
9+
public function __construct()
10+
{
11+
parent::__construct();
12+
13+
$this->initializeDefaultConfiguration();
14+
}
15+
16+
/**
17+
* Initialize defaults
18+
*
19+
*/
20+
private function initializeDefaultConfiguration(): void
21+
{
22+
$this->setRecipe('laravel');
23+
24+
$this->addDeployTask('artisan:storage:link');
25+
$this->addDeployTask('artisan:config:cache');
26+
$this->addDeployTask('artisan:route:cache');
27+
$this->addDeployTask('artisan:view:cache');
28+
$this->addDeployTask('artisan:event:cache');
29+
$this->addDeployTask('artisan:migrate');
30+
}
31+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
namespace Hypernode\DeployConfiguration\ApplicationTemplate;
4+
5+
use Hypernode\DeployConfiguration\Configuration;
6+
7+
class Wordpress extends Configuration
8+
{
9+
public function __construct()
10+
{
11+
parent::__construct();
12+
13+
$this->initializeDefaultConfiguration();
14+
}
15+
16+
/**
17+
* Initialize defaults
18+
*
19+
*/
20+
private function initializeDefaultConfiguration(): void
21+
{
22+
$this->setRecipe('wordpress');
23+
}
24+
}

0 commit comments

Comments
 (0)