This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# more stages... | |
# When using a Node image, make sure to use the amd64 version, or it will take forever | |
# GH Actions is running arm64 in a emulator (QEMU). This way, it will use the native amd64 and be much faster. | |
FROM --platform=linux/amd64 node:19 as static-assets | |
WORKDIR /app | |
COPY . . | |
RUN npm install ; npm run build | |
# more stages... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Odisseia Web com Laravel: Uma Jornada pelo Desenvolvimento Full Stack Web | |
**Instrutor**: Patricio | |
**Redes Sociais**: | |
* Youtube https://www.youtube.com/@PatricioOnCode | |
* Twitter https://twitter.com/ijpatricio | |
**Motivação**: Qualquer pessoa deve ter acesso à oportunidade de poder crescer em todos os níveis, com as tecnologias de vanguarda. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@setup | |
require __DIR__.'/vendor/autoload.php'; | |
(new \Dotenv\Dotenv(__DIR__, '.env'))->load(); | |
$appName = "my-app.com"; | |
$repository = "spatie/{$appName}"; | |
$baseDir = "/home/forge/{$appName}"; | |
$releasesDir = "{$baseDir}/releases"; | |
$currentDir = "{$baseDir}/current"; | |
$newReleaseName = date('Ymd-His'); |