mirror of
https://github.com/revoltchat/revite.git
synced 2025-03-10 00:39:24 -04:00
Compare commits
No commits in common. "c25ecc12b2639b984680cbf2a5bf2c2a978fd489" and "15e8e101519fbfd95212eacbc57b7aae4a86c7a7" have entirely different histories.
c25ecc12b2
...
15e8e10151
5 changed files with 19 additions and 29 deletions
16
.github/workflows/mirroring.yml
vendored
Normal file
16
.github/workflows/mirroring.yml
vendored
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
name: Mirroring
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- "master"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
to_gitlab:
|
||||||
|
runs-on: ubuntu-18.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- uses: pixta-dev/repository-mirroring-action@v1
|
||||||
|
with:
|
||||||
|
target_repo_url: git@gitlab.com:insert/revolt-vite.git
|
||||||
|
ssh_private_key: ${{ secrets.GITLAB_SSH_PRIVATE_KEY }}
|
25
README.md
25
README.md
|
@ -1,28 +1,3 @@
|
||||||
# Deprecation Notice
|
|
||||||
|
|
||||||
This project is deprecated, however it still may receive maintenance updates.
|
|
||||||
|
|
||||||
PRs for small fixes are more than welcome.
|
|
||||||
|
|
||||||
## Deploying a new release
|
|
||||||
|
|
||||||
```bash
|
|
||||||
cd ~/deployments/revite
|
|
||||||
git pull
|
|
||||||
git submodule update
|
|
||||||
|
|
||||||
# check:
|
|
||||||
git status
|
|
||||||
|
|
||||||
export REVOLT_SAAS_BRANCH=revite/main
|
|
||||||
export REMOTE=root@production
|
|
||||||
scripts/publish.sh
|
|
||||||
|
|
||||||
# SSH in and restart revite:
|
|
||||||
ssh $REMOTE
|
|
||||||
tmux a -t 4
|
|
||||||
```
|
|
||||||
|
|
||||||
# Revite
|
# Revite
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
|
|
|
@ -11,7 +11,7 @@ fi
|
||||||
REMOTE_DIR=/root/deployments/revite
|
REMOTE_DIR=/root/deployments/revite
|
||||||
|
|
||||||
# Post-install script
|
# Post-install script
|
||||||
POST_INSTALL=""
|
POST_INSTALL="pm2 restart revite"
|
||||||
|
|
||||||
# Assets
|
# Assets
|
||||||
export REVOLT_SAAS=https://github.com/revoltchat/assets
|
export REVOLT_SAAS=https://github.com/revoltchat/assets
|
||||||
|
|
|
@ -159,7 +159,7 @@ class ClientController {
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
const error = takeError(err);
|
const error = takeError(err);
|
||||||
if (error === "Unauthorized") {
|
if (error === "Forbidden" || error === "Unauthorized") {
|
||||||
this.sessions.delete(user_id);
|
this.sessions.delete(user_id);
|
||||||
this.current = null;
|
this.current = null;
|
||||||
this.pickNextSession();
|
this.pickNextSession();
|
||||||
|
|
|
@ -10,9 +10,8 @@ export function takeError(error: any): string {
|
||||||
case 429:
|
case 429:
|
||||||
return "TooManyRequests";
|
return "TooManyRequests";
|
||||||
case 401:
|
case 401:
|
||||||
return "Unauthorized"
|
|
||||||
case 403:
|
case 403:
|
||||||
return "Forbidden";
|
return "Unauthorized";
|
||||||
default:
|
default:
|
||||||
return "UnknownError";
|
return "UnknownError";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue