Skip to content

Commit

Permalink
Remove logs, change deployment paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ninori9 committed Jan 4, 2025
1 parent 4344bb7 commit 993960b
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
proxy_port: ${{ vars.DEPLOYMENT_GATEWAY_PORT }}

source: "./reverse-proxy/docker-compose.yml"
target: "/home/${{ vars.VM_USERNAME }}/${{ github.repository }}/reverse-proxy"
target: "/home/${{ vars.VM_USERNAME }}/${{ github.repository }}"

- name: Copy Reverse Proxy nginx.conf to VM
uses: appleboy/[email protected]
Expand All @@ -107,7 +107,7 @@ jobs:
proxy_port: ${{ vars.DEPLOYMENT_GATEWAY_PORT }}

source: "./reverse-proxy/nginx.conf"
target: "/home/${{ vars.VM_USERNAME }}/${{ github.repository }}/reverse-proxy"
target: "/home/${{ vars.VM_USERNAME }}/${{ github.repository }}"

# -------------------------------------------------
# SSH INTO VM, RUN BOTH KNOWLEDGE MANAGER AND REVERSE PROXY
Expand Down
1 change: 0 additions & 1 deletion src/app/components/admin/admin.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ export class AdminComponent implements OnInit {
}

onSetAdmin(user: User) {
console.log('Approving user', user);
const title = "Bestätigen"
// Erklärung?
const message = "Wollen Sie dieses Teammitglied zum Administrator für Ihre Organisation machen?"
Expand Down
1 change: 0 additions & 1 deletion src/app/components/login/login.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export class LoginComponent {
onLogin() {
this.authService.login(this.email, this.password).subscribe({
next: () => {
console.log('Login successful');
this.router.navigate(['/websites']);
},
error: (err) => {
Expand Down
1 change: 0 additions & 1 deletion src/app/components/websites/websites.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ export class WebsitesComponent extends BaseComponent<Website> {
}

onRefresh(website: Website) {
console.log("Refreshing...", website);
this.websiteService.editWebsite(website.id, this.createRequest(website)).subscribe({
next: (value: Website) => {
Object.assign(website, value);
Expand Down
1 change: 0 additions & 1 deletion src/app/guards/redirect.guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export class RedirectGuard implements CanActivate {

canActivate(): Observable<boolean | UrlTree> {
const accessToken = this.authService.getAccessToken();
console.log("accessToken", accessToken);
if (accessToken) {
return of(this.router.createUrlTree(['/websites']));
} else {
Expand Down
3 changes: 0 additions & 3 deletions src/app/interceptors/auth.interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,10 @@ export class AuthInterceptor implements HttpInterceptor {
) {}

intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {
console.log('AuthInterceptor: Request URL', req.url);

let authReq = req;
const accessToken = this.authService.getAccessToken();

if (req.url === this.refreshUrl) {
console.log('not intercepting refresh');
return next.handle(req);
}

Expand Down
1 change: 0 additions & 1 deletion src/app/layout/dialogs/base-dialog.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ export abstract class BaseDialogDirective<T extends BaseItem> {
this.dialogRef.close(newItem);
},
error: (err) => {
console.log("closing with null")
this.loading = false;
this.dialogRef.close(null);
}
Expand Down
3 changes: 0 additions & 3 deletions src/app/services/mail.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export class MailService {
.subscribe({
next: (response) => {
// Next the value into the subject to update subscribers
console.log("MAIL STATUS RESPONSE", response);
this.mailStatusSubject.next(response.status);
},
error: (error) => {
Expand All @@ -49,8 +48,6 @@ export class MailService {
mailAccount: account,
mailPassword: password
};
console.log("headers sent to backend", headers);
console.log("credentials being sent to backend:", credentials);

return this.http.post<void>(
`${environment.backendUrl}/mail/set-credentials`,
Expand Down

0 comments on commit 993960b

Please sign in to comment.