Update nixpacks.toml

This commit is contained in:
chark1es 2025-01-23 14:47:23 -08:00
parent 562680264b
commit 075c11ca73

View file

@ -4,20 +4,20 @@
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",
"export PATH=$HOME/.bun/bin:$PATH", "echo 'export PATH=$HOME/.bun/bin:$PATH' >> /etc/profile"
"bun install"
] ]
[phases.build] [phases.build]
# Install dependencies and build the application using Bun # Use Bun to install dependencies and build the application
commands = [ commands = [
"bun build" "source /etc/profile && bun install",
"source /etc/profile && bun build"
] ]
[phases.start] [phases.start]
# Start the application using Bun # Start the application using Bun
commands = ["bun start"] commands = ["source /etc/profile && bun start"]
[environment] [environment]
# Ensure Bun is available in the runtime # Ensure Bun is available in runtime
PATH = "$HOME/.bun/bin:$PATH" PATH = "$HOME/.bun/bin:$PATH"