从bluemix控制台运行ng(Angular)命令 [英] Run ng (Angular) commands from bluemix console

查看:92
本文介绍了从bluemix控制台运行ng(Angular)命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在bluemix部署管道上构建Angular项目。我试图用shell脚本创建新的构建顺序,但是失败了。在Bluemix上构建项目的最佳实践是什么?

I want to build my Angular project on the bluemix deploy pipeline. I have tried to create a new build order with a shell script but it just fails. What is the best practice for building the project on Bluemix?

Ex。 ng build --base-href /.../\"

Ex. "ng build --base-href /.../"

推荐答案

从项目目录中,添加 manifest.yml 文件。检查以下构建包。

From the project directory, Add manifest.yml file. Check for the buildpack below.

applications:
 - path: .
  memory: 128M
  instances: 1
  domain: mybluemix.net
  name: your_project_name
  host: your_host_name
  disk_quota: 128M
  buildpack: staticfile_buildpack




  1. 现在,运行 ng build 命令。

  2. 您应该看到dist文件夹。转到dist目录。

  3. 使用 cf登录名登录bluemix

  4. 运行 cf push< app-name>

  1. Now, run ng build command from the project directory.
  2. You should see a dist folder. Go to the dist directory.
  3. login bluemix with cf login
  4. run cf push <app-name>

您的应用程序应该部署在bluemix中。希望这会有所帮助。

Your app should be deployed in bluemix. Hope this helps.

这篇关于从bluemix控制台运行ng(Angular)命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆