Skip to content

Commit

Permalink
changes deployment order to avoid tailwind not finding new classes
Browse files Browse the repository at this point in the history
Took 4 minutes
  • Loading branch information
fabio-ivona committed Sep 16, 2021
1 parent d1ba1d7 commit 594a0e1
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions app/Recipes/Laravel/Commands/Deploy.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,37 +96,6 @@ public function handle(DockerService $docker_service, TerminalService $terminal)
return false;
}

if (!$this->task("Installing NPM packages", function () use ($docker_service, $terminal) {

$commands = [
"npm",
"install",
];

return $docker_service->service('node')->run($terminal, $commands, null, false);
})) {
return false;
}

if (!$this->task("Compiling Assets", function () use ($docker_service, $terminal) {
if ($this->is_production()) {
$commands = [
"npm",
"run",
"prod",
];
} else {
$commands = [
"npm",
"run",
"dev",
];
}
return $docker_service->service('node')->run($terminal, $commands, null, false);
})) {
return false;
}


if (!$this->task("Database maintenance", function () use ($docker_service, $terminal) {
$docker_service->service('php')->execute($terminal, [
Expand Down Expand Up @@ -195,6 +164,37 @@ public function handle(DockerService $docker_service, TerminalService $terminal)
return false;
}

if (!$this->task("Installing NPM packages", function () use ($docker_service, $terminal) {

$commands = [
"npm",
"install",
];

return $docker_service->service('node')->run($terminal, $commands, null, false);
})) {
return false;
}

if (!$this->task("Compiling Assets", function () use ($docker_service, $terminal) {
if ($this->is_production()) {
$commands = [
"npm",
"run",
"prod",
];
} else {
$commands = [
"npm",
"run",
"dev",
];
}
return $docker_service->service('node')->run($terminal, $commands, null, false);
})) {
return false;
}


if (!$this->task("Exit from Maintenance mode", function () use ($docker_service, $terminal) {
if (Storage::disk('src')->exists('storage/framework/down')) {
Expand Down

0 comments on commit 594a0e1

Please sign in to comment.