Search code examples
angularibm-cloudibm-mobile-services

Uploading Angular webapp to IBM Cloud gives 403 error


I have tried several attempt to upload app to IBM Cloud using

cf api "url"
cf login -u "user_id" -o BLUEMIX-SANDBOX-SJ001 -s "sandboxName"
cf push appName -b "https://github.com/cloudfoundry/staticfile-buildpack"

it does successfully upload and but give 403 error if viewing the url. I even tried just creating a new HelloWorld app and upload and same result. enter image description here


Solution

  • Please try this:

    • Add a “manifest.yml” file with:

    applications: name: my-app-name buildpack: staticfile_buildpack host: my-app-name memory: 32M path: dist

    • Run “ng build” to create “dist” folder
    • Take “/dist” out of gitignore file if it exists