Configure and Launch MyCRT
The next step in the deployment process is to configure MyCRT to run.
1: Environment Variables
Add the following lines to /etc/environment
Quit the SSH session and reopen it to apply the environment variables.
1.5: Run Automated Tests (Optional)
Now, the automated tests can finally be run. This is a good way to make sure everything has gone well so far.
If all tests pass, you're in good shape!
2: Configure the Service
Modify mycrt/service/mycrt.config.json
to match the following:
For a detailed explanation of all of the configuration options, check here.
Create /etc/systemd/system/mycrt.service
Now, run systemctl status mycrt
You should see the following output:
3: Launch MyCRT
Run sudo systemctl start mycrt
to start the service. Run curl localhost:80/api/ping
to make sure the service has started.
Now, you should be able to access your EC2 instance in the browser with its hostname.
Congratulations! MyCRT is now up and running.
Next (optional) Step
Last updated