mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-09-24 23:01:18 +08:00
docs: update devops documents for client (#47358)
* docs: update devops documents for client * chore: apply suggestions from code review Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
co-authored by
Oliver Eyton-Williams
parent
5ff719a4c8
commit
c15fd16ffe
+4
-4
@@ -564,8 +564,8 @@ Provisioning VMs with the Code
|
||||
|
||||
```console
|
||||
npm i -g npm@8
|
||||
npm i -g pm2
|
||||
npm install -g serve
|
||||
npm i -g pm2@4
|
||||
npm install -g serve@13
|
||||
pm2 install pm2-logrotate
|
||||
pm2 startup
|
||||
```
|
||||
@@ -583,11 +583,11 @@ Provisioning VMs with the Code
|
||||
> Todo: This setup needs to move to S3 or Azure Blob storage
|
||||
|
||||
```console
|
||||
echo "serve -c ../../serve.json www -p 50505" >> client-start-primary.sh
|
||||
echo "serve -c ../serve.json -p 50505 www" > client-start-primary.sh
|
||||
chmod +x client-start-primary.sh
|
||||
pm2 delete client-primary
|
||||
pm2 start ./client-start-primary.sh --name client-primary
|
||||
echo "serve -c ../../serve.json www -p 52525" >> client-start-secondary.sh
|
||||
echo "serve -c ../serve.json -p 52525 www" > client-start-secondary.sh
|
||||
chmod +x client-start-secondary.sh
|
||||
pm2 delete client-secondary
|
||||
pm2 start ./client-start-secondary.sh --name client-secondary
|
||||
|
||||
Reference in New Issue
Block a user