-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
30 lines (23 loc) · 765 Bytes
/
Copy pathdeploy.sh
File metadata and controls
30 lines (23 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
# Replit Deployment Script for Xero CFO Assistant Agent
# This script prepares the environment and starts the application
echo "Starting Xero CFO Assistant Agent deployment..."
# Check if .env file exists, if not create from example
if [ ! -f .env ]; then
echo "Creating .env file from template..."
cp .env.example .env
echo "Please update the .env file with your actual credentials"
fi
# Install dependencies
echo "Installing dependencies..."
npm install
# Create database directory if it doesn't exist
mkdir -p ./data
# Check if database exists, if not initialize it
if [ ! -f ./data/database.sqlite ]; then
echo "Initializing database..."
node ./scripts/init-db.js
fi
# Start the application
echo "Starting application..."
npm start