Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
ADEX-backend-fastapi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ASTRON SDC
ADEX-backend-fastapi
Commits
12bbabb6
Commit
12bbabb6
authored
2 years ago
by
Nico Vermaas
Browse files
Options
Downloads
Patches
Plain Diff
add '/adex-fastapi/' prefix to urls
parent
d4ecee02
No related branches found
No related tags found
No related merge requests found
Pipeline
#35321
passed
2 years ago
Stage: build
Stage: deploy_to_test
Stage: deploy_to_production
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+5
-1
5 additions, 1 deletion
README.md
docker/docker-compose-dev-cd.yml
+1
-1
1 addition, 1 deletion
docker/docker-compose-dev-cd.yml
docker/docker-compose-production-cd.yml
+1
-1
1 addition, 1 deletion
docker/docker-compose-production-cd.yml
routers/skyviews.py
+1
-1
1 addition, 1 deletion
routers/skyviews.py
with
8 additions
and
4 deletions
README.md
+
5
−
1
View file @
12bbabb6
...
...
@@ -11,5 +11,9 @@
*
[
dump/load a copy of the alta database
](
https://web-of-wyrd.nl/myworkwiki/doku.php?id=alta_runtime&s[]=dump#qhow_do_i_dump_and_load_a_copy_of_the_production_database_with_postgres_into_a_dev_or_vm_environment
)
*
[
dump/load esap_cache sql
](
https://web-of-wyrd.nl/myworkwiki/doku.php?id=ucac4_converter&s[]=ucac4#performance
)
docker exec -it adex-postgres psql -U postgres -f /shared/sql/adex_cache.sql
### load esap_cache.sql into dockerized Postgres database
manually copy
`esap_cache.sql`
to ~/shared directory
```
docker exec -it adex-postgres psql -U postgres -f /shared/sql/adex_cache.sql
```
This diff is collapsed.
Click to expand it.
docker/docker-compose-dev-cd.yml
+
1
−
1
View file @
12bbabb6
...
...
@@ -41,7 +41,7 @@ services:
-
"
traefik.enable=true"
-
"
traefik.http.routers.adex-backend-fastapi.entryPoints=websecure"
-
"
traefik.http.routers.adex-backend-fastapi.service=adex-backend-fastapi"
-
"
traefik.http.routers.adex-backend-fastapi.rule=Host(`sdc-dev.astron.nl`)
&&
PathPrefix(`/adex-
backend-
fastapi`)"
-
"
traefik.http.routers.adex-backend-fastapi.rule=Host(`sdc-dev.astron.nl`)
&&
PathPrefix(`/adex-fastapi`)"
-
"
traefik.http.services.adex-backend-fastapi.loadbalancer.server.port=8000"
depends_on
:
...
...
This diff is collapsed.
Click to expand it.
docker/docker-compose-production-cd.yml
+
1
−
1
View file @
12bbabb6
...
...
@@ -39,7 +39,7 @@ services:
-
"
traefik.enable=true"
-
"
traefik.http.routers.adex-backend-fastapi.entryPoints=websecure"
-
"
traefik.http.routers.adex-backend-fastapi.service=adex-backend-fastapi"
-
"
traefik.http.routers.adex-backend-fastapi.rule=Host(`sdc.astron.nl`)
&&
PathPrefix(`/adex-
backend-
fastapi`)"
-
"
traefik.http.routers.adex-backend-fastapi.rule=Host(`sdc.astron.nl`)
&&
PathPrefix(`/adex-fastapi`)"
-
"
traefik.http.services.adex-backend-fastapi.loadbalancer.server.port=8000"
depends_on
:
...
...
This diff is collapsed.
Click to expand it.
routers/skyviews.py
+
1
−
1
View file @
12bbabb6
...
...
@@ -18,7 +18,7 @@ def get_db():
# http://127.0.0.1:8000/skyviews/
# http://127.0.0.1:8000/skyviews/?skip=100&limit=100
@router.get
(
"
/skyviews/
"
,
tags
=
[
"
skyviews
"
],
response_model
=
List
[
schemas
.
SkyView
])
@router.get
(
"
/
adex-fastapi/
skyviews/
"
,
tags
=
[
"
skyviews
"
],
response_model
=
List
[
schemas
.
SkyView
])
async
def
get_skyviews
(
skip
:
int
=
0
,
limit
:
int
=
1000
,
db
:
Session
=
Depends
(
get_db
)):
items
=
crud
.
get_skyviews
(
db
,
skip
=
skip
,
limit
=
limit
)
return
items
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment