Skip to content

Commit

Permalink
feat: Improved ubuntu server script, added build script in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Damjan Ravnjak committed Dec 16, 2020
1 parent 2aa5b9c commit c83d68d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions install-scripts/ubuntu-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ sudo apt-get install -y \
git \
curl

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
sudo apt install build-essential

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
export NVM_DIR="$HOME/.nvm"

CODENAME=$(lsb_release -c -s)

# Install mongo db version 4.2
sudo apt-get purge mongodb mongodb-server mongodb-server-core mongodb-clients
sudo apt-get purge mongodb-org
sudo apt-get autoremove
sudo apt-get update
wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu $CODENAME/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list

wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list
sudo apt-get update
sudo apt-get install mongodb-org
sudo systemctl daemon-reload
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"affected:libs": "nx affected:libs",
"affected:lint": "nx affected:lint",
"affected:test": "nx affected:test",
"build": "yarn build:api && yarn build:scraper",
"build:api": "nx build --with-deps",
"build:rest-api": "nx build rest-api --with-deps",
"build:scraper": "nx build scraper --with-deps",
Expand Down

0 comments on commit c83d68d

Please sign in to comment.