ENTAPAR-FE Test Deployment

Intro

Since staging environment are being used to test some of new features, so, I decided to create new micro instance to test this node version upgradefor entapar-fe or usually called fintools.

What I have done

Setup EC2 Instance

First I create new ec2 instance under tvlk-dev aws account with IP 172.24.225.188

Create new private key and ansible tower inventory

I create new private key named ssh_entapar_dev, and create new inventory named dev-entapar-fe. Basically it is using same configuration with test-entapar-fe

Assign ec2 instance with ansible tower inventory

I assign 172.24.225.188 ec2 instance with named dev-entapar-fe inventory, and then I am run sycn command on source section inside ansible tower

Start a job from templates and getting error

I create new job based on Release Soya template usingdev-entapar-fe configuration, it is successfully running all task and getting error on the start service using pm2 task. It shown [PM2][ERROR] script not found : /srv/www/entapar-fe/current/node_modules/soya-next-scripts/scripts/start.js error message inside the log

Resolution

As stated in https://tvlk.slack.com/archives/C38TCKC9K/p1537488150000100, I am accessing ssh access to the test machine, and change the ecosystem.js file inside /srv/www/entapar-fe/ and made a change on script section from

./node_modules/soya-next-scripts/scripts/start.js
to
./node_modules/soya-next-server/index.js

and then I re-run the pm2 start command pm2 startOrReload {{ pm2_ecosystem_file }} --silent --update-env inside the folder, and error below still shown:
[PM2][ERROR] Could not create folder: /var/traveloka/log

to eliminate this, I am running this command sudo mkdir /var/traveloka/ && sudo chmod 777 /var/traveloka/inside the machine. In the end, new entapar-fe service has been successfully running on top of node v8.16.0 inside 172.24.225.188:60016.

TODOs