Update nixpacks.toml
This commit is contained in:
parent
075c11ca73
commit
674f4f4b8b
1 changed files with 4 additions and 8 deletions
|
@ -1,23 +1,19 @@
|
||||||
# nixpacks.toml
|
|
||||||
[phases.setup]
|
[phases.setup]
|
||||||
# Ensure required dependencies are installed
|
|
||||||
commands = [
|
commands = [
|
||||||
"apt-get update && apt-get install -y unzip curl",
|
"apt-get update && apt-get install -y unzip curl",
|
||||||
"curl -fsSL https://bun.sh/install | bash",
|
"curl -fsSL https://bun.sh/install | bash",
|
||||||
"echo 'export PATH=$HOME/.bun/bin:$PATH' >> /etc/profile"
|
"echo 'export PATH=$HOME/.bun/bin:$PATH' >> /etc/profile",
|
||||||
|
|
||||||
|
"source /etc/profile && bun install",
|
||||||
]
|
]
|
||||||
|
|
||||||
[phases.build]
|
[phases.build]
|
||||||
# Use Bun to install dependencies and build the application
|
|
||||||
commands = [
|
commands = [
|
||||||
"source /etc/profile && bun install",
|
|
||||||
"source /etc/profile && bun build"
|
"source /etc/profile && bun build"
|
||||||
]
|
]
|
||||||
|
|
||||||
[phases.start]
|
[phases.start]
|
||||||
# Start the application using Bun
|
commands = ["source /etc/profile && bun run dist/server/entry.mjs"]
|
||||||
commands = ["source /etc/profile && bun start"]
|
|
||||||
|
|
||||||
[environment]
|
[environment]
|
||||||
# Ensure Bun is available in runtime
|
|
||||||
PATH = "$HOME/.bun/bin:$PATH"
|
PATH = "$HOME/.bun/bin:$PATH"
|
||||||
|
|
Loading…
Reference in a new issue