Skip to content

Commit

Permalink
Деплой
Browse files Browse the repository at this point in the history
  • Loading branch information
YarikMix committed Mar 22, 2024
1 parent 1096aeb commit 9b2333c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
24 changes: 8 additions & 16 deletions .github/workflows/flow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,14 @@ jobs:
username: ${{ secrets.USERNAME }}
key: ${{ secrets.PRIVATE_KEY }}
script: cd /home/${{ secrets.USERNAME }}/frontend/2024_1_scratch_senior_devs && git pull
# - name: Build frontend
# uses: appleboy/ssh-action@master
# with:
# timeout: 10m
# host: ${{ secrets.HOST }}
# username: ${{ secrets.USERNAME }}
# key: ${{ secrets.PRIVATE_KEY }}
# script: cd /home/${{ secrets.USERNAME }}/frontend/2024_1_scratch_senior_devs && sh ./build.sh
# - name: Build frontend
# uses: appleboy/ssh-action@master
# with:
# timeout: 10m
# host: ${{ secrets.HOST }}
# username: ${{ secrets.USERNAME }}
# key: ${{ secrets.PRIVATE_KEY }}
# script: cd /home/${{ secrets.USERNAME }}/frontend/2024_1_scratch_senior_devs && npm run build
- name: Build frontend
uses: appleboy/ssh-action@master
with:
timeout: 10m
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.PRIVATE_KEY }}
script: cd /home/${{ secrets.USERNAME }}/frontend/2024_1_scratch_senior_devs && npm run build
- name: Build frontend
uses: appleboy/ssh-action@master
with:
Expand Down
1 change: 1 addition & 0 deletions public/src/modules/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export class Router extends ScReact.Component<any, routerState> {
public go(path: string): void {
const page: {page: {new(): Component<any, any> }, pageProps: object, loader: () => Promise<any>} = this.pages[path];

// TODO: не пускать на страницу с заметками неавторизированного пользователя. Добавить скилетоны
// if (page.pageProps.needAuth && !AppUserStore.state.isAuth) {
// console.log("zsdf")
// this.go("/")
Expand Down

0 comments on commit 9b2333c

Please sign in to comment.