From 075c11ca735a2772bb5c0fb54fc8407b415a0f6a Mon Sep 17 00:00:00 2001 From: chark1es Date: Thu, 23 Jan 2025 14:47:23 -0800 Subject: [PATCH] Update nixpacks.toml --- nixpacks.toml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/nixpacks.toml b/nixpacks.toml index a94f79a..425177b 100644 --- a/nixpacks.toml +++ b/nixpacks.toml @@ -4,20 +4,20 @@ commands = [ "apt-get update && apt-get install -y unzip curl", "curl -fsSL https://bun.sh/install | bash", - "export PATH=$HOME/.bun/bin:$PATH", - "bun install" + "echo 'export PATH=$HOME/.bun/bin:$PATH' >> /etc/profile" ] [phases.build] -# Install dependencies and build the application using Bun +# Use Bun to install dependencies and build the application commands = [ - "bun build" + "source /etc/profile && bun install", + "source /etc/profile && bun build" ] [phases.start] # Start the application using Bun -commands = ["bun start"] +commands = ["source /etc/profile && bun start"] [environment] -# Ensure Bun is available in the runtime +# Ensure Bun is available in runtime PATH = "$HOME/.bun/bin:$PATH"