update budibase

This commit is contained in:
thomas 2022-10-13 23:28:24 +02:00
parent b32e4adc73
commit 9b0ca7ae1c
4 changed files with 26 additions and 57 deletions

View File

@ -10,12 +10,13 @@ Source : https://github.com/Budibase/budibase
- server
- worker
- minio
- couchdb
- clouseau
- couchdb and clouseau
- redis
- nginx
##### Install
##### Install
Bellow the way to install all service on same server
```bash
apt update
@ -36,22 +37,29 @@ echo "deb [signed-by=/usr/share/keyrings/couchdb-archive-keyring.gpg] https://ap
apt update
apt install -y --no-install-recommends couchdb nodejs nginx redis-server minio budibase clouseau
```
##### Configuration
```bash
#add couchdb token into /etc/clouseau/clouseau.ini
#edit /etc/default/budibase-server and /etc/default/budibase-worker
cat <<EOF > /etc/default/minio
MINIO_ACCESS_KEY=DruccokdudaufElWuejyeerog-Anphoj
MINIO_SECRET_KEY=NorcyagOovLadjonCekUthgeOcyuFrac
MINIO_BROWSER=off
EOF
#edit bellow file with same value for same variable ( except port)
# - /etc/default/budibase-server
# - /etc/default/budibase-worker
# - /etc/default/minio
#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/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
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
```

View File

@ -1,6 +1,6 @@
#!/bin/bash
VERSION=2.0.27
VERSION=2.0.30
APP=budibase
DEPOT=https://github.com/Budibase/budibase.git
GIT_VERSION=last
@ -36,8 +36,11 @@ build() {
makedeb(){
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/
mv /tmp/budibase/packages/* ${PATH_DEB}/opt/budibase/
mv /tmp/${APP}/packages/* ${PATH_DEB}/opt/budibase/
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/dist/budibase-client.js ${PATH_DEB}/opt/budibase/server/client

View File

@ -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

View File

@ -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