How to use simple npm-install in Openshift?

前端 未结 1 1240

I\'m trying to use cute-files on my openshift account

https://www.npmjs.com/package/cute-files

I know node.js works as I did in localhost:3000 but not as expert,

相关标签:
1条回答
  • 2021-01-21 08:07

    It's not like you can access Openshift and run any command. Openshift isn't a simple hosting or vps service, it's a PaaS. That means they offer you an environment to run certain services in particular as you demand.

    When you create an app it's bound to a git repository which when pushed will be deployed to openshift.

    About your application being deployed and runned, it's NOT about node.js running in port 3000. Openshift has some default application file names and port to expect.

    So, working in a local clone of such repository you might perform the npm install command, that will download the node_modules folder to be there.

    How to do all this?

    1. First you should install rhc in your system.
    2. Manage to clone any of you applications via rhc.
    3. Make changes, and do git.
    4. Those changes may include doing npm install getting your dependencies.
    5. When doing git push, expect the changes to be deployed.

    You really should read this guide.

    0 讨论(0)
提交回复
热议问题