lenova Posted May 2, 2018 Author Report Posted May 2, 2018 5 hours ago, rrc_2015 said: Solution veyyi dude .... It will help others next time. Troubleshooted the below encountered 1. Unable to find package.json in the provided project Ran the node init to create one 2. Unable to start the ec2 instance Enabled the custom firewall on ipv4 and ipv6 , enabled the file print sharing for ipv4/ipv6 in windows firewall 3. Initially tried logging with putty and faced access issues Downloaded the git bash and tried accessing the instance 4. The application stops once the console session is over , so ran the command npm install –g forever Forever start <thestartup.js> 5. If the argument port is not mentioned the application should redirect to “environment not defined” page. For this the application is setup to run the node manually 6.. The different environments are configured with different ports 1000,2000,3000,4000 for DEV, TEST, DR and PROD respectively ( this is project specific , had to do some code changes in the .js file) 7. Setup the promoting pipeline and CICD in heroku , this is very straight forward . any heroku documentation would help. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.