How do I deploy an Angular 2 app on Bluemix?

前端 未结 4 1533
北海茫月
北海茫月 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条回答
  •  没有蜡笔的小新
    2021-01-14 12:54

    There are a few ways to deploy an angular2 app to Bluemix.

    1. You can export your static files and push the dist folder along with manifest.yml file https://docs.cloudfoundry.org/buildpacks/staticfile/index.html

    2. You can deploy your app in a Docker container with your nginx.conf file

    I highly recommend deploying the app in a Docker container. It will give you more freedom in development.

    Here is a post I find really useful. http://heidloff.net/article/angular-2-bluemix-docker-nginx

    I hope this can help

提交回复
热议问题