Skip to main content

Command Reference

Local Docs Commands

npm install
npm run start
npm run build

Server Deploy Commands

cd /root/home/StreetsDocs
git pull
npm install
npm run build
cp -r build/* /var/www/docs.nextgendevstudios.dev/
systemctl reload nginx

Nginx Commands

nginx -t
systemctl reload nginx
systemctl status nginx

SSL Commands

certbot --nginx -d docs.nextgendevstudios.dev
certbot renew --dry-run

Protected Docs Commands

apt install -y apache2-utils
htpasswd -c /etc/nginx/.streetsdocs-private staffadmin
htpasswd /etc/nginx/.streetsdocs-private username
nginx -t
systemctl reload nginx

Discord RBAC Commands

cd /root/home/StreetsDocs
cp scripts/rbac-gateway/env.example .env
openssl rand -hex 32
nano .env
npm install
npm run build
pm2 start npm --name StreetsDocsRBAC -- run serve:rbac
pm2 save
pm2 logs StreetsDocsRBAC

Test Commands

curl -I http://docs.nextgendevstudios.dev
curl -I https://docs.nextgendevstudios.dev
curl ifconfig.me

Git Commands

git status
git pull
git add .
git commit -m "Update docs"
git push origin master