Posts

Showing posts with the label tech radar

Challenges and Solutions: Deploying Thoughtworks Tech Radar Node.js + Webpack on Heroku.

A few days back, I got a chance to deploy Thoughtworks Tech Radar  (a Node.js package) on Heroku as our own organization Tech Radar. Although Deploying a Node.js application with Webpack on Heroku can be an easy process, still you may face certain challenges while deploying. Here's a brief rundown of the challenges I have faced and how I tackled them during the deployment process. 1. Missing Procfile One of the initial challenges I faced was forgetting to include a Procfile in my project's root directory. This resulted in Heroku not knowing how to start my application as Heroku uses a Procfile to determine how to run your application. Know more about Procfile To resolve this, I created a simple Procfile that specifies the below command to run my Node.js server. ``` web: npm install --include=dev && npm run dev ``` 2. Heroku-prebuild - command Webpack is commonly used to bundle and optimize JavaScript code for production. However, after the build process, I realized that...