Skip to content

How To Deploy Bridge On Azure

Nids22 edited this page Jun 26, 2024 · 16 revisions
  • Create a web app and select the node version then Review + Create
  • Turn on SCM basic Auth and FTP Basic Auth

image

  • Go to Development Center and select local git as the source

image

You should also now have access to this page

image

  • Add a deployment script to your FE directory
#!/bin/bash

echo "Starting deployment script..."

echo "Downloading Node.js 18.17.0..."
curl -o node-v18.17.0-linux-x64.tar.xz https://nodejs.org/dist/v18.17.0/node-v18.17.0-linux-x64.tar.xz

echo "Extracting Node.js 18.17.0..."
tar -xf node-v18.17.0-linux-x64.tar.xz

echo "Installing Node.js 18.17.0..."
export PATH=$PWD/node-v18.17.0-linux-x64/bin:$PATH

echo "Installing Bun..."
curl https://bun.sh/install | bash

export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"

# Ensure that the .bashrc file is sourced to update the PATH
source ~/.bashrc

echo "Changing to project directory..."
cd /home/site/repository/src/frontends/bridge-front || exit

echo "Cleaning the .next directory..."
rm -rf .next

echo "Installing dependencies..."
bun install

echo "Starting the server in development mode..."
bun run dev --turbo -H 0.0.0.0 -p 8080

Clone this wiki locally