Setting the brackets registry on Aboutweb Production server - adobe/brackets-registry GitHub Wiki

Configuring the main brackets-registry server

  1. 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 using kill <PID>
  2. Make sure you are logged as root user, otherwise you won't have permissions to kill or create a process.
  3. Switch to the brackets-registry server by cd /var/apps/brackets-registry. This is a clone of the brackets-registry on master branch.
  4. There are some changes added to the server only to add more security, so before making any changes, check for diff by git diff and copy the diff to a file(so that changes are not lost).
  5. Now update the app using git pull, resolve conflicts if any.
  6. Check the node version by node -v. Verify that the version is same as what is defined in .travis.yml
  7. Start the app using node /var/apps/brackets-registry/app.js &.

Starting cronjob to update download count of extensions

  1. 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.
  2. Make sure that in config/config.json the flag debug.keepTempFolder is set to false.
  3. To add cronjob run crontab -e and at the end of file add */15 * * * * node /var/apps/brackets-registry/downloadStats/downloadStatsUpdater.js, then save and close the file.
⚠️ **GitHub.com Fallback** ⚠️