GovReady / GovReady-CMS-API

Compliance API service supporting GovReady's WordPress Agent
4 stars 0 forks source link

Issues upgrading to ubuntu 16.04 #60

Open jlyon opened 7 years ago

jlyon commented 7 years ago

@gregelin Here are notes. I also added these to https://github.com/GovReady/GovReady-CMS-API/wiki/Running-the-GovReady-API-locally-or-on-an-intranet.

When I logged into the server, nvm appeared to be installed, so I was able to install node v5.0 and forever with the lines from https://github.com/GovReady/GovReady-CMS-API/wiki/Running-the-GovReady-API-locally-or-on-an-intranet/:

nvm install 6
node -v
npm install -g forever

Mongo:

rm /etc/apt/sources.list.d/mongodb*.list   # Needed to run this since it was an update
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
sudo apt-get update
sudo apt-get install mongodb-org
# Note: on plugin.govready.com we are using mLab, so we only need to verify that mongo is installed
mongo --version
# If you want to run the mongodb locally, you will need to create a service file. 
# See https://www.digitalocean.com/community/tutorials/how-to-install-mongodb-on-ubuntu-16-04 for details
# Create database and user (https://docs.mongodb.com/manual/tutorial/manage-users-and-roles/)

Installing the app

Thanks, Jeff

jlyon commented 7 years ago

@gregelin I added the swapfile and made one more change to the wiki (and the comment above): We had upgraded to node v6 to make the automatic Let's Encrypt ssl cert work. The app is now running and the dashboard is working on http://drupal.plugin.govready.com/admin/reports/govready.

Docs for setting up memory swapfile (not added to the wiki): https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04

gregelin commented 7 years ago

@jlyon Thanks for this. I am testing. Also testing installing on RedHat.

gregelin commented 7 years ago

@jlyon Can we better document relationship between root and non-root user during installation of packages, nvm, npm, GovReady-CMS-API and running forever?

I'm not clear if npm installed as root has to be run as root and so forth.