Skip to content

Commit

Permalink
refactor(server): use server from Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
machikoyasuda committed Oct 6, 2021
1 parent a688230 commit a1a18d2
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 308 deletions.
2 changes: 1 addition & 1 deletion .devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "cal-itp/benefits",
"dockerComposeFile": ["./localhost/docker-compose.yml"],
"service": "dev",
"runServices": ["dev", "docs", "server"],
"runServices": ["dev", "docs"],
"workspaceFolder": "/home/calitp/app",
"postStartCommand": ["/bin/bash", "bin/init.sh"],
"postAttachCommand": ["/bin/bash", "localhost/bin/init.sh"],
Expand Down
15 changes: 0 additions & 15 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,6 @@
"0.0.0.0:8000"
],
"django": true
},
{
"name": "Flask: Eligibility Verification Server",
"type": "python",
"request": "attach",
"connect": {
"host": "localhost",
"port": 5789
},
"pathMappings": [
{
"localRoot": "${workspaceFolder}/localhost/server",
"remoteRoot": "/usr/src/server"
}
]
}
]
}
21 changes: 0 additions & 21 deletions localhost/data/server.json

This file was deleted.

9 changes: 1 addition & 8 deletions localhost/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,9 @@ services:
- ../:/home/calitp/app:cached

server:
build: ./server
image: eligibility_verification_server:dev
command: python -m debugpy --listen 0.0.0.0:5678 app.py
environment:
- FLASK_APP=app.py
- FLASK_DEBUG=1
- FLASK_ENV=development
image: ghcr.io/machikoyasuda/eligibility-server:test
ports:
- "5000"
- "5678"
volumes:
- ./server:/usr/src/server:cached
- ./data:/usr/src/server/data
Expand Down
27 changes: 0 additions & 27 deletions localhost/keys/server.key

This file was deleted.

9 changes: 0 additions & 9 deletions localhost/server/Dockerfile

This file was deleted.

219 changes: 0 additions & 219 deletions localhost/server/app.py

This file was deleted.

5 changes: 0 additions & 5 deletions localhost/server/requirements.txt

This file was deleted.

3 changes: 0 additions & 3 deletions localhost/server/static/tokenize.js

This file was deleted.

0 comments on commit a1a18d2

Please sign in to comment.