Openshift NodeJS App 404 Not Found - node.js

I am creating my first node application on OpenShift.
I created an app with node 0.10 and MongoDb 2.4 but whenever I go to the application URL ,http://cm-justinbezanson3.rhcloud.com, it redirects to https://cm-justinbezanson3.rhcloud.com/app and says 404 Not Found.
I am sure I am missing a step somewhere.

If you still having this problem, you can follow this tutorial to deploy nodejs on openshift.
https://www.youtube.com/playlist?list=PLcdTDBNC_bSj1GG0_-K6R5_UgV9E3jBPZ

Related

heroku angular deployment cannot find dist/app-name/index.html

So I'm trying to deploy an angular 6 app on heroku, and I followed these steps:
this and this.
According to the heroku deployment logs, it says the build was successful. But when I try to access, the web page only returns Not found.
When I checked heroku logs, this was the result:
I'm pretty sure I followed all the steps correctly. So what am I doing wrong/missing here?

Deploying Angular2 app in Nginx in Windows

Can anyone please explain the steps or provide a link that I can look into to demonstrate how to deploy my Angular2 app in a Nginx server.? My current position is, my Angular2 2 app is running on Angular2 CLI server and back end is NodeJs running on Express server. Please do explain from how to install Nginx to deploy in production as I am new to the same.
These are the links that show deploying angular 2 app on nginx :
Angular 2 Official Deployment
Stackoverflow
From blog
For Windows, please follow these instructions to install Nginx in Windows :
Nginx official docs
Blog tutorial
After that, the rest step is just the same as the other environment, so you only have to dive deeper with nginx.
Hope this helps

Nodejs and Meteor on OpenShift

I have a mobile (Ionic 2) chat application with the following implementation, that uses nodejs-0.10 and MongoDB 3.2.7 and Meteor 1.4.1.1. It works perfectly on my localhost.
Now I need to deploy it to an OpenShift server. I have followed the following steps and created a server on OpenShift with Meteor. It is connecting with Git, and I can push my code to the server.
I am pretty sure the Meteor server is running on OpenShift, because I saw something to that effect on the startup logs (via ssh). However, I am not sure how to connect to the Meteor server to test it.
The domain is nodejs-easyjobs.rhcloud.com (54.208.77.250) on the OpenShift server, I can ping this successfully.
I am using Ionic 2 to build the mobile app. I am currently just running on Android, but plan to add iOS and Windows.
I am following this tutorial, and it runs on localhost. However, I am not sure where this is configured. I guess localhost is default, and you need to change it to a different host if needs be.
If I check my OpenShift server (nodejs-easyjobs.rhcloud.com) via ssh, I can see that the contents of the Meteor bundle directory is on the server. So Git is pushing the code.
The part I don't understand is:
Do I need to configure Meteor differently for being on the OpenShift
Server? Or do I just leave it as is?
Where do I configure the client
(Ionic 2) to point to the OpenShift server?
Question:
My question is, how do I configure my mobile app (Ionic 2) to connect to the OpenShift Meteor Server?
UPDATE:
My dir structure:
openshift-appname
.../ionic-apps/nodejs/bundle/server/...
meteorapp
.../ionic-aps/myIonicApp/api/.meteor/...
.../ionic-aps/myIonicApp/api/server/...
The contents of the .../ionic-apps/nodejs is cloned on the OpenShift server with Git.
I followed this tutorial to deploy the Meteor bundle to OpenShift. `
So I used the following to build my Meteor app:
> cd .../ionic-aps/myIonicApp/
> meteor build .../ionic-apps/nodejs --directory --server-only
As far as I can see, I may be wrong, but the Meteor Server is all correct and running on OpenShift. I need to know how I can get my Ionic2 app to access it.
Step1: Find the access point to the Meteor server using the OpenShift
IP. i.e. nodejs-easyjobs.rhcloud.com (54.208.77.250).
Step2: Configure my Ionic2 client to use this.

Running as existing app in node.js Loopback project

I am going to take over an existing project developed in node.js with looback framework. I have installed and configured the frameworks correctly and tested by creating a demo application also.
But when I try to run the existing application it is showing an error,
I tried this command to run the project
from the root directory : slc start
Error is
Error: connect ECONNREFUSED 127.0.0.1:8701
Any body have knowledge to solve this issue ?

Deploying Sails App on Openshift

Can any one help me with deploying a SailsJS app on Openshift?
I followed How you get Sail.js running on Openshift
After making my changes and pushing it to the repo I get the status as successful but when I go to my link it says
Service Temporarily Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Apache/2.2.15 (Red Hat) Server at kittylogintest-kittygame.rhcloud.com Port 80
I finally managed to deploy my sails application on openshift
Most of the steps mentioned in the link mentioned in my question will help
After following the steps i was getting an error stating permission denied for grunt-cli
I solved it by SSHing in to my app and then doing the npm install in app-root/runtime/repo
Hope this helps if some one stumbles on the same stair.

Resources