How do I deploy an Angular 2 app on Bluemix?

前端 未结 4 1547
北海茫月
北海茫月 2021-01-14 12:32

I have tried to deploy a few basic Angular 2 projects on Bluemix and got only errors after the build.

Did anybody manage to have Angular 2 working on Bluemix? In tha

4条回答
  •  旧时难觅i
    2021-01-14 13:14

    It would be great to post a sample or a link to your source code. But from the two log lines it sounds like you are trying to deploy the Angular 2 app including the Node.js tooling it comes with.

    As pointed by the previous comment, you'd rather build your Angular 2 app and deploy the resulting files, keeping the Node.js tooling for your local development.

    I've put together a sample doing just that https://github.com/l2fprod/bluemix-hello-angular2. Consider it an even simpler version of the above example.

    It is a new project generated with the angular-cli, then I did the minimum required changes to deploy the build to Bluemix.

提交回复
热议问题