You can view information about your instance in the EC2 Console Instances view. You can reach it from the EC2 Dashboard with any of these links.
Checking the box will select the instance in this view, and clicking the link will open the instance details in its own view. For this guide, we’ll click the link and open the instance details in its own view.
Look for Public IPv4 DNS on the Details tab. Log onto the server using this DNS address, and the keypair you selected when creating the instance.
Navigate to /opt/datalogics/pdf-utility/config/ and open the file settings.js.
In this file, change serverDomain to the domain for your server.
Save the settings.js file.
To apply the settings file changes, restart pm2 using this command: pm2 reload 0 --watch
To check the status of pm2: pm2 status. You should see the API in the pm2 list.
PM2 logs can be found at: /home/rocky/.pm2/logs/PDFCloud-out.log