2024-03-11 03:42:13 +00:00
|
|
|
cd /root
|
2024-04-04 16:32:10 +00:00
|
|
|
wget -P /app https://go.dev/dl/go1.22.2.linux-amd64.tar.gz
|
|
|
|
tar -C /usr/local -xzf /app/go1.22.2.linux-amd64.tar.gz
|
2024-03-11 03:42:13 +00:00
|
|
|
|
|
|
|
apt-get update
|
|
|
|
apt-get -y install git build-essential npm vim
|
|
|
|
|
|
|
|
curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
|
|
|
|
apt install -y nodejs
|
|
|
|
|
|
|
|
npm install --global yarn
|
|
|
|
npm install -g n
|
|
|
|
n stable
|
|
|
|
|
|
|
|
cd /app/databag
|
|
|
|
git checkout .
|
|
|
|
|
|
|
|
yarn --cwd /app/databag/net/web install
|
|
|
|
yarn --cwd /app/databag/net/web build
|
|
|
|
cd /app/databag/net/server; /usr/local/go/bin/go build databag
|