Updated /.github/workflows/deploy.yml

This commit is contained in:
Hayden Hargreaves 2025-03-05 21:36:14 -07:00
parent 126292258d
commit bbf4bdf0ce
3 changed files with 4 additions and 3 deletions

View File

@ -43,6 +43,7 @@ jobs:
host: ${{ secrets.SERVER_HOST }} host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USER }} username: ${{ secrets.SERVER_USER }}
password: ${{ secrets.SERVER_PASSWORD }} password: ${{ secrets.SERVER_PASSWORD }}
port: 22
script: | script: |
docker-compose -f /home/azpect/Applications/file.gophernest/docker-compose.yml down docker-compose -f /home/azpect/Applications/file.gophernest/docker-compose.yml down
docker-compose -f /home/azpect/Applications/file.gophernest/docker-compose.yml pull docker-compose -f /home/azpect/Applications/file.gophernest/docker-compose.yml pull

View File

@ -10,7 +10,6 @@ import {appendDirectoryToArchive, appendFileToArchive} from "./download";
import path from "node:path"; import path from "node:path";
import {verifyToken} from "./authenicate"; import {verifyToken} from "./authenicate";
import jwt from "jsonwebtoken"; import jwt from "jsonwebtoken";
import {config} from "dotenv";
/** /**
* App details * App details
@ -23,7 +22,7 @@ const ROOT: string = "/home/azpect";
* Configure the .env file, this is for testing only * Configure the .env file, this is for testing only
* TODO: Remove this * TODO: Remove this
*/ */
config({path: ".env"}); // config({path: ".env"});
/** /**
* Invalid file extensions for the file editor. * Invalid file extensions for the file editor.
@ -35,7 +34,7 @@ const INVALID_EXTS: string[] = ["exe", "dll", "obj", "lib", "bin", "dat", "pdf",
* TODO: Update hosts for production * TODO: Update hosts for production
*/ */
const corsOptions: cors.CorsOptions = { const corsOptions: cors.CorsOptions = {
origin: ["http://localhost:3100"], origin: ["http://localhost:3100", "https://192.168.1.211:3100"],
methods: ["GET", "POST"] methods: ["GET", "POST"]
}; };
APP.use(cors(corsOptions)); APP.use(cors(corsOptions));

View File

@ -4,6 +4,7 @@ services:
build: build:
context: ./frontend context: ./frontend
dockerfile: Dockerfile dockerfile: Dockerfile
ports: ports:
- "3100:3100" - "3100:3100"
depends_on: depends_on: