
Select your project or create one if you don’t already have one.
mkdir Payments-Dashboard
cd Payments-Dashboard
touch app.py
touch index.py
mkdir assets
mkdir apps
mkdir datasets
python3 index.py
wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | sudo apt-key add -
echo "deb https://packages.cloudfoundry.org/debian stable main" | sudo tee /etc/apt/sources.list.d/cloudfoundry-cli.list
sudo apt-get update
sudo apt-get install cf7-cli
cf -v ### Cloud Foundry version
cf login ### Cloud Foundry Login
cf -a <api endpoint> ##Cloud Foundry API Endpoint
cf login --sso ## Cloud Foundry Login through One time Passcode
touch requirements.txt
touch Procfile
touch runtime.txt
touch manifest.yml
---
applications:
- name: payments-dashboard
memory: 128MB
disk_quota: 1GB
random-route: true
buildpacks: ["python_buildpack"]
cf push
Running setup.py install for pathlib: started
Running setup.py install for pathlib: finished with status 'done'
Successfully installed Flask-2.1.1 Flask-Caching-1.10.1 Jinja2-3.1.1 MarkupSafe-2.1.1 Werkzeug-2.1.1 brotli-1.0.9 click-8.1.2 dash-2.3.1 dash-core-components-2.0.0 dash-extensions-0.0.71 dash-html-components-2.0.0 dash-table-5.0.0 editorconfig-0.12.3 flask-compress-1.11 importlib-metadata-4.11.3 itsdangerous-2.1.2 jsbeautifier-1.14.3 more-itertools-8.12.0 numpy-1.22.3 pandas-1.4.2 pathlib-1.0.1 plotly-5.7.0 python-dateutil-2.8.2 pytz-2022.1 six-1.16.0 tenacity-8.0.1 zipp-3.8.0
Exit status 0
Uploading droplet, build artifacts cache...
Uploading droplet...
Uploading build artifacts cache...
Uploaded build artifacts cache (66.8M)
Uploaded droplet (131.9M)
Uploading complete
Cell c2098343-8d23-46ae-9e87-7d29bf794c68 stopping instance 4e49eb21-24ba-44ff-aa34-94362f49bb19
Cell c2098343-8d23-46ae-9e87-7d29bf794c68 destroying container for instance 4e49eb21-24ba-44ff-aa34-94362f49bb19
Cell c2098343-8d23-46ae-9e87-7d29bf794c68 successfully destroyed container for instance 4e49eb21-24ba-44ff-aa34-94362f49bb19
Waiting for app payments-dashboard to start...
Instances starting...
Instances starting...
Instances starting...
Instances starting...
Instances starting...
name: payments-dashboard
requested state: started
isolation segment: trial
routes: payments-dashboard.cfapps.us10.hana.ondemand.com
last uploaded: Wed 13 Apr 13:43:12 CEST 2022
stack: cflinuxfs3
buildpacks:
isolation segment: trial
name version detect output buildpack name
python_buildpack 1.7.48 python python
type: web
sidecars:
instances: 1/1
memory usage: 128M
start command: python index.py
state since cpu memory disk details
#0 running 2022-04-13T11:43:34Z 0.0% 0 of 0 0 of 0
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
5 | |
4 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 | |
2 |