The start up script is used to initialize the VM during a boot or a restart with the necessary software (MongoDB, Node.js, supervisor, and others) and loads the application from the source code repository. The following script can be found in the /Chapter16/ folder of the Git repository.
The start up script performs the following tasks:
- Installs the logging agent which is an application based on Fluentd.
- Installs the MongoDB database to be used by the KeystoneJS application.
- Installs Node.js, Git, and supervisor. Supervisor is a process control system which is used to run our KeystoneJS application as a process.
- Clones the application code from the repository to the local folder. Update the code at #Line 60 ...