Skip to content

Commit

Permalink
core(scripts): add system-wide scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
soheilous committed Jun 27, 2024
1 parent 67990dd commit 7c17cc2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,19 @@
"prepare": "husky",
"setup:alias:load": "./scripts/alias/loader.sh",
"setup:alias:unload": "./scripts/alias/unloader.sh",
"setup:redis:portable": "./scripts/redis-loader/portable.sh",
"setup:app": "pnpm run setup:git",
"setup:git": "npx husky",
"setup:mongo:system-wide": "./scripts/mongo-loader/system-wide.sh",
"setup:redis:portable": "./scripts/redis-loader/portable.sh",
"start": "pnpm run start:production",
"start:dev": "turbo start:dev --concurrency=500%",
"start:dev:dashboard": "pnpm run dev --filter=dashboard",
"start:dev:map": "pnpm run dev --filter=map-view",
"start:dev:watch": "turbo start:dev:watch",
"start:production": "turbo start:production",
"test": "turbo run test",
"test:dev": "turbo run test:dev",
"test:coverage": "turbo run test:coverage",
"test:dev": "turbo run test:dev",
"test:dev:coverage": "turbo run test:dev:coverage",
"test:dev:watch": "turbo run test:dev:watch"
},
Expand Down
15 changes: 15 additions & 0 deletions scripts/mongo-loader/system-wide.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
sudo apt-get install -y gnupg curl

curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc |
sudo gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg \
--dearmor

echo "deb [ signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] http://repo.mongodb.org/apt/debian bullseye/mongodb-org/7.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list

sudo apt-get update

sudo apt-get install -y mongodb-org

sudo systemctl enable mongod

sudo systemctl start mongod

0 comments on commit 7c17cc2

Please sign in to comment.