run updates
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
import utils from "../utils.js";
|
||||
|
||||
console.log(
|
||||
"Plan file structure has changed. This script needs to be reworked."
|
||||
);
|
||||
|
||||
process.exit();
|
||||
|
||||
await utils.cloneOrPullRepo({
|
||||
repo: "https://github.com/makeplane/plane.git",
|
||||
path: "./repo",
|
||||
@@ -11,3 +17,21 @@ await utils.renameFile("./code/variables.env", "./code/.env.example");
|
||||
|
||||
await utils.removeContainerNames("./code/docker-compose.yml");
|
||||
await utils.removePorts("./code/docker-compose.yml");
|
||||
|
||||
await utils.searchReplace(
|
||||
"./code/.env.example",
|
||||
"APP_DOMAIN=localhost",
|
||||
"APP_DOMAIN=$(PRIMARY_DOMAIN)"
|
||||
);
|
||||
|
||||
await utils.searchReplace(
|
||||
"./code/.env.example",
|
||||
"WEB_URL=http://${APP_DOMAIN}",
|
||||
"WEB_URL=https://$(PRIMARY_DOMAIN)"
|
||||
);
|
||||
|
||||
await utils.searchReplace(
|
||||
"./code/.env.example",
|
||||
"CORS_ALLOWED_ORIGINS=http://${APP_DOMAIN}",
|
||||
"CORS_ALLOWED_ORIGINS=https://$(PRIMARY_DOMAIN)"
|
||||
);
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ ! -d "./repo" ]; then
|
||||
git clone --depth 1 --branch preview --single-branch https://github.com/makeplane/plane.git repo
|
||||
else
|
||||
cd repo
|
||||
git pull
|
||||
cd ..
|
||||
fi
|
||||
|
||||
cp -r ./repo/deploy/selfhost/. ./code
|
||||
mv ./code/variables.env ./code/.env.example
|
||||
|
||||
|
||||
Reference in New Issue
Block a user