gitignore fix
All checks were successful
ci / docker_image (push) Successful in 1m36s
ci / deploy (push) Successful in 16s

This commit is contained in:
Drake Marino 2025-03-28 13:12:43 -05:00
parent 638fb4c0f8
commit 585ae4924b
5 changed files with 820 additions and 6 deletions

6
.gitignore vendored
View File

@ -28,7 +28,7 @@ vite.config.ts.timestamp-*
postgresql
# User uploads
/static/uploads/logos/*
/static/uploads/avatars/*
/static/uploads/resumes/*
/uploads/logos/*
/uploads/avatars/*
/uploads/resumes/*

View File

@ -8,4 +8,4 @@ RUN npm ci --omit dev
RUN npm run build
EXPOSE 8080
ENTRYPOINT cd /srv/FBLA25 && PORT=8080 node build
ENTRYPOINT node /srv/FBLA25/server.js

798
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -41,7 +41,9 @@
"@tailwindcss/forms": "^0.5.9",
"autoprefixer": "^10.4.20",
"bcrypt": "^5.1.1",
"desm": "^1.3.1",
"dotenv": "^16.4.7",
"express": "^4.21.2",
"js-cookie": "^3.0.5",
"jsonwebtoken": "^9.0.2",
"nodemailer": "^6.10.0",

18
server.js Normal file
View File

@ -0,0 +1,18 @@
import express from 'express';
import { handler } from './build/handler.js';
import { join } from 'desm';
const assetsPath = join(import.meta.url, 'uploads');
const app = express();
// Serve static files dynamically from the "static" folder (e.g., for uploads)
app.use('/uploads', express.static(assetsPath));
// Serve the built SvelteKit app
app.use(handler);
// Start the server
app.listen(8080, () => {
console.log('Server running on port 8080');
});