From 674f4f4b8b5469e5e2658c092581bd3c8453f254 Mon Sep 17 00:00:00 2001 From: chark1es Date: Thu, 23 Jan 2025 14:50:33 -0800 Subject: [PATCH] Update nixpacks.toml --- nixpacks.toml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/nixpacks.toml b/nixpacks.toml index 425177b..3d00c9e 100644 --- a/nixpacks.toml +++ b/nixpacks.toml @@ -1,23 +1,19 @@ -# nixpacks.toml [phases.setup] -# Ensure required dependencies are installed commands = [ "apt-get update && apt-get install -y unzip curl", "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] -# Use Bun to install dependencies and build the application commands = [ - "source /etc/profile && bun install", "source /etc/profile && bun build" ] [phases.start] -# Start the application using Bun -commands = ["source /etc/profile && bun start"] +commands = ["source /etc/profile && bun run dist/server/entry.mjs"] [environment] -# Ensure Bun is available in runtime PATH = "$HOME/.bun/bin:$PATH"