Hosting Node Js Application in Jelastic PaaS / Yeti Cloud

Step 1: Create a Environment

Dashboard top Navbar
  • Goto Dashboard and click New Enviroment
  • You will get the dialog to create new environment like this
Create Enviroment Dialog
  • This Dialog looks huge and confusing at first but let’s crack this step by step
  • Here you can select your prefered environment configuration like At the top we can see different technology like node js, .net, python, java, php and if you require custom images or if you want to use public images then you can goto custom section.

Step 2 : Choose Application Server

We are hosting a node js application so we choose a node js then we need to select Application Server we want to use.

Choose Application Server
  • We can select a specific version of the server as we like, or we can also use a docker image.
  • I will just choose one of the node js versions and continue.

Step 3 : Choose Vertical Scaling configurations

Vertical Scaling

Step 4 : Choose Horizontal Scaling configurations

Horizontal Scaling
Nginx Load Balancer

Step 5 : View Your Pricing details

Pricing Details

Step 6 : Name your Environment

Step 7 : Choose Database — (If Required)

  • I have chosen mysql version 8, you can choose any database like mongodb, mariadb or any other.
  • In the database too you can choose horizontal and vertical scaling and other configurations

Step 8 : Choose VPC, Storage — (If Required)

  • You can choose your custom vpc where the environment runs.
  • You can also use a shared storage service if required.

Step 9 : Create Environment

  • Now you can click on create and it will start creating your environment
  • It will send you database configuration data in your email account
Enviroment List

Deploy node js app to the Environment

  1. You can see Deployment manager at the bottom of the page
  2. You have different option for deployment like Archive
  3. You can zip your application files and upload it in jelastic deployment manager
  • Or Must common way of doing things is using version control platform like github, gitlab
  • We can add a repository in deployment manager GIT/SVN
  • Give a name,url,branch and you also have to give login username and token or ssh key if your repository is private
  • And Click Add+Deploy or add only

Now From Environment Application Server

  1. On Deployment -> Choose Deploy From Git/SVN
  2. Choose your repo you have added if not you can add now also.
  3. You can click Check and auto deploy will automatically fetch from git if new changes have been pushed
  4. And Click Deploy

Install Packages

In the Node js application we need to install a package to run the app so we do that from the default terminal, you can also add an ssh key and use your own terminal but i am using a web terminal.

cd ROOT/ # goto projeect location
ls # see all project files
npm install # install dependencies
npm run build # if frontend need to be built
npm start # you can start server and check everthing is alright or you can use pm2 or any other services to start server
node app.js or node server.js
  • Goto your environment list and application server
  • Goto Variables and the dialog will popup
  • Add your database host, user, password in env files if required
  • Restart your server and open your app you will see your application running



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store