This repository was archived by the owner on Sep 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Setting the brackets registry on Aboutweb Production server
Saurabh Kathpalia edited this page Mar 21, 2017
·
4 revisions
- First check if any process is already running for brackets-registry by
ps aux | grep app.js, if yes then you need to kill the process usingkill <PID> - Make sure you are logged as root user, otherwise you won't have permissions to kill or create a process.
- Switch to the brackets-registry server by
cd /var/apps/brackets-registry. This is a clone of the brackets-registry on master branch. - There are some changes added to the server only to add more security, so before making any changes, check for diff by
git diffand copy the diff to a file(so that changes are not lost). - Now update the app using
git pull, resolve conflicts if any. - Check the node version by
node -v. Verify that the version is same as what is defined in .travis.yml - Start the app using
node /var/apps/brackets-registry/app.js &.
- Check if any cronjob is already running by
crontab -l. If there is no cronjob then we need to add a cronjob to update the download count in every 15 minutes. If there is already a crontjob running verify that path of file is correct and also time interval. - Make sure that in
config/config.jsonthe flagdebug.keepTempFolderis set tofalse. - To add cronjob run
crontab -eand at the end of file add*/15 * * * * node /var/apps/brackets-registry/downloadStats/downloadStatsUpdater.js, then save and close the file.