fix self-hosting
This commit is contained in:
@@ -16,7 +16,7 @@ import { Step, Steps } from 'fumadocs-ui/components/steps';
|
||||
### Quickstart
|
||||
|
||||
```bash
|
||||
git clone https://github.com/Openpanel-dev/openpanel && cd openpanel/self-hosting && ./setup
|
||||
git clone -b self-hosting https://github.com/Openpanel-dev/openpanel && cd openpanel/self-hosting && ./setup
|
||||
# After setup is complete run `./start` to start OpenPanel
|
||||
```
|
||||
|
||||
@@ -25,10 +25,10 @@ git clone https://github.com/Openpanel-dev/openpanel && cd openpanel/self-hostin
|
||||
<Step>
|
||||
### Clone
|
||||
|
||||
Clone the repository to your VPS
|
||||
Clone the repository to your VPS and checkout the self-hosting tag
|
||||
|
||||
```bash
|
||||
git clone https://github.com/Openpanel-dev/openpanel.git
|
||||
git clone -b self-hosting https://github.com/Openpanel-dev/openpanel.git
|
||||
```
|
||||
</Step>
|
||||
<Step>
|
||||
|
||||
@@ -36,10 +36,7 @@ export async function bootCron() {
|
||||
},
|
||||
];
|
||||
|
||||
if (
|
||||
(process.env.VITE_SELF_HOSTED === 'true' || process.env.SELF_HOSTED) &&
|
||||
process.env.NODE_ENV === 'production'
|
||||
) {
|
||||
if (process.env.SELF_HOSTED && process.env.NODE_ENV === 'production') {
|
||||
jobs.push({
|
||||
name: 'ping',
|
||||
type: 'ping',
|
||||
|
||||
@@ -47,7 +47,7 @@ export async function deleteProjects(job: Job<CronQueuePayload>) {
|
||||
|
||||
for (const table of tables) {
|
||||
const query =
|
||||
process.env.VITE_SELF_HOSTED === 'true'
|
||||
process.env.SELF_HOSTED === 'true'
|
||||
? `ALTER TABLE ${table} DELETE WHERE ${where};`
|
||||
: `ALTER TABLE ${table}_replicated ON CLUSTER '{cluster}' DELETE WHERE ${where};`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user