-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adds a quick start powershell script
- Loading branch information
Showing
2 changed files
with
41 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# # check if a command exists | ||
# function command_exists { | ||
# param([string]$cmd) | ||
# if (Get-Command $cmd -ErrorAction SilentlyContinue) { | ||
# return $true | ||
# } | ||
# else { | ||
# return $false | ||
# } | ||
# } | ||
|
||
# cleanup | ||
Remove-Item -Path ./build/ -Recurse -Force | ||
|
||
# build | ||
Write-Host "==> Build & Generate" | ||
pnpm install; cargo run; pnpm build | ||
|
||
# preview | ||
pnpm preview | ||
|
||
# # deploy | ||
# $commands = @("docker", "podman") | ||
# foreach ($cmd in $commands) { | ||
# if (command_exists $cmd) { | ||
# Write-Host "`n==> Deploy with '$cmd'`n" | ||
# & "$cmd-compose" -p hymnal -f ./compose.yaml down | ||
# & "$cmd-compose" -p hymnal -f ./compose.yaml up -d | ||
# Write-Host "`n==> Open http://[::1]:8080 in your browser" | ||
# exit | ||
# } | ||
# else { | ||
# Write-Host "`n==> Warning: Command '$cmd' not found" | ||
# } | ||
# } | ||
# Write-Host "`n==> Error: Deploymnet failed" | ||
# exit 1 |
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