diff --git a/README.md b/README.md index 5b48323..7a75eee 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,7 @@ MongoDB is installed directly on the VM and only listens on `127.0.0.1`, so it c ### How to start the backend if it stops -On the VM, the backend runs in pm2 under the name `plants-backend`, as the user `alexajah`, from `/home/alexajah/T03-Project-2/backend`. pm2 restarts it if it crashes or the VM reboots. +On the VM, the backend runs in pm2 under the name `iloveplants-backend`, as the user `alexajah`, from `/home/alexajah/T03-Project-2/backend`. pm2 restarts it if it crashes or the VM reboots. Log in with: @@ -127,8 +127,8 @@ ssh @it2810-03.idi.ntnu.no If you are not `alexajah`, put `sudo -u alexajah` in front of the pm2 commands, since pm2 only shows the processes of the user who started them. ```bash -pm2 list # is plants-backend online? -pm2 restart plants-backend # start it again if it is not +pm2 list # is iloveplants-backend online? +pm2 restart iloveplants-backend # start it again if it is not ``` If the logs show that the backend cannot connect to MongoDB, the database has stopped and must be started before the backend is restarted. diff --git a/backend/package-lock.json b/backend/package-lock.json index 2d38dfe..c2e1ff5 100644 --- a/backend/package-lock.json +++ b/backend/package-lock.json @@ -1,11 +1,11 @@ { - "name": "backend", + "name": "iloveplants-backend", "version": "1.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "backend", + "name": "iloveplants-backend", "version": "1.0.0", "dependencies": { "@apollo/server": "^5.5.1", diff --git a/backend/package.json b/backend/package.json index fbc1cad..4d3412f 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,5 +1,5 @@ { - "name": "backend", + "name": "iloveplants-backend", "version": "1.0.0", "description": "GraphQL-backend for I <3 Plants (Apollo Server + MongoDB)", "main": "dist/server.js",