Adisri99 commited on
Commit
c77d7b5
·
verified ·
1 Parent(s): b5b6255

Delete space

Browse files
Files changed (3) hide show
  1. space/.DS_Store +0 -0
  2. space/nginx.conf +0 -23
  3. space/start.sh +0 -12
space/.DS_Store DELETED
Binary file (6.15 kB)
 
space/nginx.conf DELETED
@@ -1,23 +0,0 @@
1
- worker_processes 1;
2
- events { worker_connections 1024; }
3
- http {
4
- include /etc/nginx/mime.types;
5
- sendfile on;
6
- server {
7
- listen 7860;
8
- server_name _;
9
- location /api/ {
10
- proxy_pass http://127.0.0.1:8000/api/;
11
- proxy_set_header Host $host;
12
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
13
- }
14
- location /_next/ {
15
- proxy_pass http://127.0.0.1:3000/_next/;
16
- proxy_set_header Host $host;
17
- }
18
- location / {
19
- proxy_pass http://127.0.0.1:3000/;
20
- proxy_set_header Host $host;
21
- }
22
- }
23
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
space/start.sh DELETED
@@ -1,12 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -e
3
- mkdir -p /data/uploads /data/artifacts
4
- python /workspace/scripts/migrate_db.py
5
- cd /workspace/frontend
6
- if [ ! -d node_modules ]; then
7
- npm install
8
- fi
9
- PORT=3000 NEXT_PUBLIC_API_BASE_URL=/api nohup npm run start >/tmp/frontend.log 2>&1 &
10
- cd /workspace
11
- nohup uvicorn backend.app.main:app --host 0.0.0.0 --port 8000 >/tmp/backend.log 2>&1 &
12
- nginx -g 'daemon off;'