Uploading Angular webapp to IBM Cloud gives 403 error

911 Views Asked by At

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

1

There are 1 best solutions below

2
Richard Lovell On BEST ANSWER

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