Welcome to the Linux Foundation Forum!

Need help on lab 13 web-ui app

dkt
dkt Posts: 8

Some questions:

1) The class artifact tarball refers the app name as web-ui. But the lab of the PDF refers it as ruby-web-ui.

2) The video demo for the slide 13.12:

Looks like the app ruby-web-ui is already deployed, so that it could bind rest-backend to it.

But I had problem deploying the ruby-web-ui/web-ui (no related video to show how to deploy) so I cannot continue with lab 13 and furture labs (lab 14, etc.).

3) Video demo for the slide 13.13, push the web-ui:

Got problem:

$ cat ruby-web-ui-manifest.yml

---

name: ruby-web-ui

random-route: true

buildpack: https://github.com/cloudfoundry/ruby-buildpack.git#v1.6.35

memory: 128M

instances: 1

$ cf push -f ruby-web-ui-manifest.yml -p . --no-start

Pushing from manifest to org pcfdev-org / space pcfdev-space as admin...

Using manifest file ruby-web-ui-manifest.yml



Deprecation warning: Specifying app manifest attributes at the top level is deprecated. Found: buildpack, instances, memory, name, random-route.

Please see http://docs.cloudfoundry.org/devguide/deploy-apps/manifest.html#deprecated for alternatives and other app manifest deprecations. This feature will be removed in the future.



Using manifest file ruby-web-ui-manifest.yml

Updating app ruby-web-ui in org pcfdev-org / space pcfdev-space as admin...

OK

 

Then it just stopped in here.

Comments

  • vlaskovic
    vlaskovic Posts: 13

    Videos are not correctly sequenced.

    First deploy web-ui without starting the same, and then get back to the previous video, second part, covering binding.

    Please have a look at the following documentation regarding deprecated items and their current substitutions:

    https://docs.cloudfoundry.org/devguide/deploy-apps/manifest.html#-attribute-routes-replaces-domain,-domains,-host,-hosts,-and-no-hostname

    Now you can only specify the deprecated list you've provided by using the routes attribute:


    ---
    applications
    - name: webapp
     routes:
     - route: www.example.com/foo
     - route: tcp.example.com:1234

    This app manifest feature has been deprecated, and a replacement option is under consideration.

    Hope this helps,

    Slobodanka

  • dkt
    dkt Posts: 8
    edited April 2018

    Found the problem:

    $ cf push -f ruby-web-ui-manifest.yml -p . --no-start

    It should extract the zip and cd into web-ui.

    -p . means current directory

    In my previous setting, when I deploy the app, I am in /root, So it try to include /root/.pcfdev when it is pushing the app. /root/.pcfdev is very large.

Categories

Upcoming Training