update budibase
This commit is contained in:
parent
b32e4adc73
commit
9b0ca7ae1c
|
@ -10,12 +10,13 @@ Source : https://github.com/Budibase/budibase
|
||||||
- server
|
- server
|
||||||
- worker
|
- worker
|
||||||
- minio
|
- minio
|
||||||
- couchdb
|
- couchdb and clouseau
|
||||||
- clouseau
|
|
||||||
- redis
|
- redis
|
||||||
- nginx
|
- nginx
|
||||||
|
|
||||||
##### Install
|
##### Install
|
||||||
|
|
||||||
|
Bellow the way to install all service on same server
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
apt update
|
apt update
|
||||||
|
@ -36,22 +37,29 @@ echo "deb [signed-by=/usr/share/keyrings/couchdb-archive-keyring.gpg] https://ap
|
||||||
apt update
|
apt update
|
||||||
apt install -y --no-install-recommends couchdb nodejs nginx redis-server minio budibase clouseau
|
apt install -y --no-install-recommends couchdb nodejs nginx redis-server minio budibase clouseau
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
##### Configuration
|
||||||
|
|
||||||
|
```bash
|
||||||
|
|
||||||
#add couchdb token into /etc/clouseau/clouseau.ini
|
#add couchdb token into /etc/clouseau/clouseau.ini
|
||||||
|
|
||||||
#edit /etc/default/budibase-server and /etc/default/budibase-worker
|
#edit bellow file with same value for same variable ( except port)
|
||||||
|
# - /etc/default/budibase-server
|
||||||
cat <<EOF > /etc/default/minio
|
# - /etc/default/budibase-worker
|
||||||
MINIO_ACCESS_KEY=DruccokdudaufElWuejyeerog-Anphoj
|
# - /etc/default/minio
|
||||||
MINIO_SECRET_KEY=NorcyagOovLadjonCekUthgeOcyuFrac
|
|
||||||
MINIO_BROWSER=off
|
|
||||||
EOF
|
|
||||||
|
|
||||||
|
#Get Nginx sample configuration
|
||||||
wget -qO /etc/nginx/sites-enabled/default https://github.com/Budibase/budibase/raw/develop/hosting/single/nginx/nginx-default-site.conf
|
wget -qO /etc/nginx/sites-enabled/default https://github.com/Budibase/budibase/raw/develop/hosting/single/nginx/nginx-default-site.conf
|
||||||
wget -qO /etc/nginx/nginx.conf https://github.com/Budibase/budibase/raw/develop/hosting/single/nginx/nginx.conf
|
wget -qO /etc/nginx/nginx.conf https://github.com/Budibase/budibase/raw/develop/hosting/single/nginx/nginx.conf
|
||||||
|
|
||||||
|
#add redis password password
|
||||||
echo requirepass neddOryianquasJuwrav2DrokVuWeac >> /etc/redis/redis.conf
|
echo requirepass neddOryianquasJuwrav2DrokVuWeac >> /etc/redis/redis.conf
|
||||||
|
|
||||||
systemctl restart couchdb minio nginx redis budibase-worker budibase-server clouseau
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
##### Restart all service
|
||||||
|
|
||||||
|
```bash
|
||||||
|
systemctl restart couchdb minio nginx redis budibase-worker budibase-server clouseau
|
||||||
|
```
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
VERSION=2.0.27
|
VERSION=2.0.30
|
||||||
APP=budibase
|
APP=budibase
|
||||||
DEPOT=https://github.com/Budibase/budibase.git
|
DEPOT=https://github.com/Budibase/budibase.git
|
||||||
GIT_VERSION=last
|
GIT_VERSION=last
|
||||||
|
@ -36,8 +36,11 @@ build() {
|
||||||
makedeb(){
|
makedeb(){
|
||||||
PATH_DEB=/tmp/src/rootfs
|
PATH_DEB=/tmp/src/rootfs
|
||||||
|
|
||||||
|
grep ":" /tmp/${APP}/packages/server/src/environment.js | cut -d ":" -f 1 | tr -d ' ' | grep ^[A-Z] | awk '{print "#"$1"="}' | sort > ${PATH_DEB}/etc/default/budibase-server
|
||||||
|
grep ":" /tmp/${APP}/packages/worker/src/environment.ts | cut -d ":" -f 1 | tr -d ' ' | grep ^[A-Z] | awk '{print "#"$1"="}' | sort> ${PATH_DEB}/etc/default/budibase-worker
|
||||||
|
|
||||||
mkdir -p ${PATH_DEB}/opt/budibase/
|
mkdir -p ${PATH_DEB}/opt/budibase/
|
||||||
mv /tmp/budibase/packages/* ${PATH_DEB}/opt/budibase/
|
mv /tmp/${APP}/packages/* ${PATH_DEB}/opt/budibase/
|
||||||
mkdir -p ${PATH_DEB}/opt/budibase/server/client
|
mkdir -p ${PATH_DEB}/opt/budibase/server/client
|
||||||
cp ${PATH_DEB}/opt/budibase/client/manifest.json ${PATH_DEB}/opt/budibase/server/client
|
cp ${PATH_DEB}/opt/budibase/client/manifest.json ${PATH_DEB}/opt/budibase/server/client
|
||||||
cp ${PATH_DEB}/opt/budibase/client/dist/budibase-client.js ${PATH_DEB}/opt/budibase/server/client
|
cp ${PATH_DEB}/opt/budibase/client/dist/budibase-client.js ${PATH_DEB}/opt/budibase/server/client
|
||||||
|
|
|
@ -1,23 +0,0 @@
|
||||||
COUCH_DB_URL=http://admin:admin@localhost:5984
|
|
||||||
WORKER_URL=http://localhost:4002
|
|
||||||
MINIO_URL=http://localhost:9000
|
|
||||||
MINIO_ACCESS_KEY=DruccokdudaufElWuejyeerog-Anphoj
|
|
||||||
MINIO_SECRET_KEY=NorcyagOovLadjonCekUthgeOcyuFrac
|
|
||||||
INTERNAL_API_KEY=yaif4ShnumbivfoctErvAsBark?8Koks
|
|
||||||
BUDIBASE_ENVIRONMENT=prod
|
|
||||||
PORT=4001
|
|
||||||
JWT_SECRET=AdliejyiarApsEmNuilyanmuifyojhay
|
|
||||||
LOG_LEVEL=info
|
|
||||||
#SENTRY_DSN=https://a34ae347621946bf8acded18e5b7d4b8@o420233.ingest.sentry.io/5338131
|
|
||||||
#ENABLE_ANALYTICS="true"
|
|
||||||
REDIS_URL=localhost:6379
|
|
||||||
REDIS_PASSWORD=neddOryianquasJuwrav2DrokVuWeac
|
|
||||||
BB_ADMIN_USER_EMAIL=thomas
|
|
||||||
BB_ADMIN_USER_PASSWORD=thomas
|
|
||||||
#PLUGINS_DIR=${PLUGINS_DIR}
|
|
||||||
WORKER_PORT=4002
|
|
||||||
APP_PORT=4001
|
|
||||||
DATA_DIR=/root/budibase/packages
|
|
||||||
NODE_ENV=production
|
|
||||||
SELF_HOSTED=1
|
|
||||||
BUDIBASE_ENVIRONMENT=PRODUCTION
|
|
|
@ -1,19 +0,0 @@
|
||||||
CLUSTER_PORT=80
|
|
||||||
JWT_SECRET=AdliejyiarApsEmNuilyanmuifyojhay
|
|
||||||
MINIO_ACCESS_KEY=DruccokdudaufElWuejyeerog-Anphoj
|
|
||||||
MINIO_SECRET_KEY=NorcyagOovLadjonCekUthgeOcyuFrac
|
|
||||||
MINIO_URL=http://localhost:9000
|
|
||||||
APPS_URL=http://localhost:4001
|
|
||||||
COUCH_DB_USERNAME=admin
|
|
||||||
COUCH_DB_PASSWORD=admin
|
|
||||||
COUCH_DB_URL=http://admin:admin@localhost:5984
|
|
||||||
#SENTRY_DSN=https://a34ae347621946bf8acded18e5b7d4b8@o420233.ingest.sentry.io/5338131
|
|
||||||
INTERNAL_API_KEY=yaif4ShnumbivfoctErvAsBark?8Koks
|
|
||||||
REDIS_URL=localhost:6379
|
|
||||||
REDIS_PASSWORD=neddOryianquasJuwrav2DrokVuWeac
|
|
||||||
PORT=4002
|
|
||||||
WORKER_PORT=4002
|
|
||||||
APP_PORT=4001
|
|
||||||
NODE_ENV=production
|
|
||||||
SELF_HOSTED=1
|
|
||||||
BUDIBASE_ENVIRONMENT=PRODUCTION
|
|
Loading…
Reference in New Issue