Running & Updating Noki
After completing the setup requirements, follow these steps to run & updating Noki:
When pushing new changes to GitHub:
1. Push the changes to git from your local in the dev branch
2. SSH into the server and navigate to the Noki directory:
cd /var/www/html/gamification/Nokigit pull origin main  # or the appropriate branch3. Build frontend changes:
cd frontend/admin-uinpm install  # only if not done beforenpm run build4. Restart Apache server:
sudo /usr/bin/systemctl restart apache25. Check Apache status:
sudo /usr/bin/systemctl status apache2Debugging & Logs
To check for errors:
1. Navigate to the Apache logs directory:
cd /var/log/apache22. Open the noki-error_log to view detailed errors:
cat noki-error_log# or to continuously monitortail -f noki-error_logFinal Checklist
-Connected to VPN
-SSH access confirmed
-GitHub and Bitbucket repositories cloned
-Frontend built via npm run build
-Apache restarted and confirmed running
-Logs checked for any errors