File tree Expand file tree Collapse file tree 2 files changed +55
-0
lines changed
Expand file tree Collapse file tree 2 files changed +55
-0
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments