Skip to content

Commit

Permalink
Merge pull request #256 from SelfhostedPro/projects
Browse files Browse the repository at this point in the history
remove envs from docker-compose commands
  • Loading branch information
SelfhostedPro authored Feb 6, 2021
2 parents c7d54fe + 2ce17e9 commit 3b3f944
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions backend/api/actions/compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def compose_app_action(
"-d",
app,
_cwd=os.path.dirname(compose["path"]),
_env=None
)
except Exception as exc:
raise HTTPException(400, exc.stderr.decode("UTF-8").rstrip())
Expand All @@ -77,6 +78,7 @@ def compose_app_action(
"--no-start",
app,
_cwd=os.path.dirname(compose["path"]),
_env=None
)
except Exception as exc:
raise HTTPException(400, exc.stderr.decode("UTF-8").rstrip())
Expand All @@ -88,6 +90,7 @@ def compose_app_action(
"--stop",
app,
_cwd=os.path.dirname(compose["path"]),
_env=None
)
except Exception as exc:
raise HTTPException(400, exc.stderr.decode("UTF-8").rstrip())
Expand All @@ -97,6 +100,7 @@ def compose_app_action(
action,
app,
_cwd=os.path.dirname(compose["path"]),
_env=None
)
except Exception as exc:
raise HTTPException(400, exc.stderr.decode("UTF-8").rstrip())
Expand Down
5 changes: 4 additions & 1 deletion backend/api/auth/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ def auth_check(Authorize):
return Authorize.jwt_required()
except JWTDecodeError as exc:
status_code = exc.status_code
if exc.message == "Signature verification failed":
if (
exc.message == "Signature verification failed"
or exc.message == "Signature has expired"
):
status_code = 401
raise HTTPException(status_code=status_code, detail=exc.message)
2 changes: 1 addition & 1 deletion frontend/src/components/compose/ProjectDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
</v-col>
</v-row>
</v-card-title>
<v-card-subtitle v-if="action">Running compose {{ action }} ...</v-card-subtitle>
<v-card-subtitle v-if="action">Running docker-compose {{ action }} ...</v-card-subtitle>
</v-card>
<v-card color="foreground" class="mt-2">
<v-card-title> Project Details </v-card-title>
Expand Down

0 comments on commit 3b3f944

Please sign in to comment.