0% found this document useful (0 votes)
84 views

Git Updates

The document shows the steps taken to deploy a Dash app to Heroku. It begins by cloning the remote repository and pulling changes from the upstream source. Credentials are added to push changes to GitHub. The Heroku CLI is installed and used to create an app, add the code, and scale the web dyno. Errors are encountered when trying to open or scale the app without specifying the app name.

Uploaded by

lajja
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
84 views

Git Updates

The document shows the steps taken to deploy a Dash app to Heroku. It begins by cloning the remote repository and pulling changes from the upstream source. Credentials are added to push changes to GitHub. The Heroku CLI is installed and used to create an app, add the code, and scale the web dyno. Errors are encountered when trying to open or scale the app without specifying the app name.

Uploaded by

lajja
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

(base) sakshi@SakshiJain MINGW64 ~

$ cd /d/mds/Month4/553/
.ipynb_checkpoints/ DSCI_553_stat-inf-2_students/
(base) sakshi@SakshiJain MINGW64 ~
$ cd /d/mds/Month4/553/

(base) sakshi@SakshiJain MINGW64 /d/mds/Month4/553


$ cd /d/mds/Month4/DSCI_532_viz-2_students/
.git/ lectures/ release/
dsci-532_group-20/ README.md
(base) sakshi@SakshiJain MINGW64 /d/mds/Month4/553
$ cd /d/mds/Month4/DSCI_532_viz-2_students/dsci-532_group-20/

(base) sakshi@SakshiJain MINGW64 /d/mds/Month4/DSCI_532_viz-2_students/dsci-


532_group-20 (main)
$ git pull
Already up to date.

(base) sakshi@SakshiJain MINGW64 /d/mds/Month4/DSCI_532_viz-2_students/dsci-


532_group-20 (main)
$ git remote -v
origin https://github.com/hellosakshi/dsci-532_group-20.git (fetch)
origin https://github.com/hellosakshi/dsci-532_group-20.git (push)

(base) sakshi@SakshiJain MINGW64 /d/mds/Month4/DSCI_532_viz-2_students/dsci-


532_group-20 (main)
$ git remote add upstream https://github.com/UBC-MDS/dsci-532_group-20

(base) sakshi@SakshiJain MINGW64 /d/mds/Month4/DSCI_532_viz-2_students/dsci-


532_group-20 (main)
$ git remote -v
origin https://github.com/hellosakshi/dsci-532_group-20.git (fetch)
origin https://github.com/hellosakshi/dsci-532_group-20.git (push)
upstream https://github.com/UBC-MDS/dsci-532_group-20 (fetch)
upstream https://github.com/UBC-MDS/dsci-532_group-20 (push)

(base) sakshi@SakshiJain MINGW64 /d/mds/Month4/DSCI_532_viz-2_students/dsci-


532_group-20 (main)
$ git pull upstream main
remote: Enumerating objects: 77, done.
remote: Counting objects: 100% (63/63), done.
remote: Compressing objects: 100% (28/28), done.
remote: Total 50 (delta 17), reused 40 (delta 13), pack-reused 0
Unpacking objects: 100% (50/50), 217.37 KiB | 38.00 KiB/s, done.
From https://github.com/UBC-MDS/dsci-532_group-20
* branch main -> FETCH_HEAD
* [new branch] main -> upstream/main
Updating 8d26d43..50de705
data/raw/README.md | 1 -
doc/README.md | 2 +-+++----
results/README.md | 1 - +-
results/img/app_mockup.png | Bin 0 -> 214674 bytes
src/README.md | 1 -
src/app.py | 77 +++++++++++++++++++++++++------
doc/TEAM_CONTRACT.md => team-contract.md | 0
9 files changed, 85 insertions(+), 29 deletions(-)
delete mode 100644 data/raw/README.md
delete mode 100644 results/README.md
create mode 100644 results/img/app_mockup.png
delete mode 100644 src/README.md
rename doc/TEAM_CONTRACT.md => team-contract.md (100%)

(base) sakshi@SakshiJain MINGW64 /d/mds/Month4/DSCI_532_viz-2_students/dsci-


532_group-20 (main)
$ git push
fatal: unable to access 'https://github.com/hellosakshi/dsci-532_group-20.git/':
Could not resolve host: github.com

(base) sakshi@SakshiJain MINGW64 /d/mds/Month4/DSCI_532_viz-2_students/dsci-


532_group-20 (main)
$ git push
Logon failed, use ctrl+c to cancel basic credential prompt.
Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
To https://github.com/hellosakshi/dsci-532_group-20.git
8d26d43..50de705 main -> main

(base) sakshi@SakshiJain MINGW64 /d/mds/Month4/DSCI_532_viz-2_students/dsci-


532_group-20 (main)
$ git pull
Already up to date.

(base) sakshi@SakshiJain MINGW64 /d/mds/Month4/DSCI_532_viz-2_students/dsci-


532_group-20 (main)
$ git pull
Already up to date.

(base) sakshi@SakshiJain MINGW64 /d/mds/Month4/DSCI_532_viz-2_students/dsci-


532_group-20 (main)
DEPLOYMENT
(base) sakshi@SakshiJain MINGW64 ~
$ heroku --version
» Warning: Our terms of service have changed:
» https://dashboard.heroku.com/terms-of-service
heroku/7.47.7 win32-x64 node-v12.16.2

(base) sakshi@SakshiJain MINGW64 ~


$ heroku login
heroku: Press any key to open up the browser to login or q to exit:
Opening browser to https://cli-auth.heroku.com/auth/cli/browser/d2e857e4-faae-45
ee-9160-0192cc1a6500?requestor=SFMyNTY.g2gDbQAAAA0yMDYuODcuMjE2Ljg1bgYAp5r_IncBY
gABUYA.gSzTktOAyydrMvJBgwTgjBlMKQoRS5d7DRsdvuwCI9M
Logging in... done
Logged in as [email protected]

(base) sakshi@SakshiJain MINGW64 ~


$ cd /d/mds/Month4/
553/ DSCI_562_regr-2_students/
DSCI_532_viz-2_students/ DSCI_572_sup-learn-2_students/
(base) sakshi@SakshiJain MINGW64 ~
$ cd /d/mds/Month4/DSCI_532_viz-2_students/

(base) sakshi@SakshiJain MINGW64 /d/mds/Month4/DSCI_532_viz-2_students (master)


$ cd /d/mds/Month4/DSCI_532_viz-2_students/
.git/ data/ lectures/ release/
532.yaml dsci-532_group-20/ README.md
(base) sakshi@SakshiJain MINGW64 /d/mds/Month4/DSCI_532_viz-2_students (master)
$ cd /d/mds/Month4/DSCI_532_viz-2_students/dsci-532_group-20/

(base) sakshi@SakshiJain MINGW64 /d/mds/Month4/DSCI_532_viz-2_students/dsci-


532_group-20 (main)
$ heroku create my-dash-app
Creating ⬢ my-dash-app... !
! Name my-dash-app is already taken

(base) sakshi@SakshiJain MINGW64 /d/mds/Month4/DSCI_532_viz-2_students/dsci-


532_group-20 (main)
$

(base) sakshi@SakshiJain MINGW64 /d/mds/Month4/DSCI_532_viz-2_students/dsci-


532_group-20 (main)
$ git add .
warning: LF will be replaced by CRLF in .Rhistory.
The file will have its original line endings in your working directory
(base) sakshi@SakshiJain MINGW64 /d/mds/Month4/DSCI_532_viz-2_students/dsci-
532_group-20 (main)
$ git commit -m 'Initial demo app'
[main 9798aea] Initial demo app
2 files changed, 513 insertions(+), 1 deletion(-)
create mode 100644 .Rhistory

(base) sakshi@SakshiJain MINGW64 /d/mds/Month4/DSCI_532_viz-2_students/dsci-


532_group-20 (main)
$ git push heroku master
error: src refspec master does not match any
error: failed to push some refs to 'heroku'

(base) sakshi@SakshiJain MINGW64 /d/mds/Month4/DSCI_532_viz-2_students/dsci-


532_group-20 (main)
$ git push
Logon failed, use ctrl+c to cancel basic credential prompt.
Enumerating objects: 8, done.
Counting objects: 100% (8/8), done.
Delta compression using up to 4 threads
Compressing objects: 100% (4/4), done.
Writing objects: 100% (5/5), 3.83 KiB | 1.92 MiB/s, done.
Total 5 (delta 2), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
To https://github.com/hellosakshi/dsci-532_group-20.git
ebb4aa1..9798aea main -> main

(base) sakshi@SakshiJain MINGW64 /d/mds/Month4/DSCI_532_viz-2_students/dsci-


532_group-20 (main)
$ heroku open
» Error: Missing required flag:
» -a, --app APP app to run command against
» See more help with --help

(base) sakshi@SakshiJain MINGW64 /d/mds/Month4/DSCI_532_viz-2_students/dsci-


532_group-20 (main)
$ --help
bash: --help: command not found

(base) sakshi@SakshiJain MINGW64 /d/mds/Month4/DSCI_532_viz-2_students/dsci-


532_group-20 (main)
$ heroku --help
CLI to interact with Heroku

VERSION
heroku/7.47.7 win32-x64 node-v12.16.2

USAGE
$ heroku [COMMAND]

COMMANDS
access manage user access to apps
addons tools and services for developing, extending, and operating
your app
apps manage apps on Heroku
auth check 2fa status
authorizations OAuth authorizations
autocomplete display autocomplete installation instructions
buildpacks scripts used to compile apps
certs a topic for the ssl plugin
ci run an application test suite on Heroku
clients OAuth clients on the platform
config environment variables of apps
container Use containers to build and deploy Heroku apps
domains custom domains for apps
drains forward logs to syslog or HTTPS
features add/remove app features
git manage local git repository for app
help display help for heroku
keys add/remove account ssh keys
labs add/remove experimental features
local run Heroku app locally
logs display recent log output
maintenance enable/disable access to app
members manage organization members
notifications display notifications
orgs manage organizations
pg manage postgresql databases
pipelines manage pipelines
plugins list installed plugins
ps Client tools for Heroku Exec
psql open a psql shell to the database
redis manage heroku redis instances
regions list available regions for deployment
releases display the releases for an app
reviewapps manage reviewapps in pipelines
run run a one-off process inside a Heroku dyno
sessions OAuth sessions
spaces manage heroku private spaces
status status of the Heroku platform
teams manage teams
update update the Heroku CLI
webhooks list webhooks on an app

(base) sakshi@SakshiJain MINGW64 /d/mds/Month4/DSCI_532_viz-2_students/dsci-


532_group-20 (main)
$ heroku ps:scale web=1
» Error: Missing required flag:
» -a, --app APP app to run command against
» See more help with --help

(base) sakshi@SakshiJain MINGW64 /d/mds/Month4/DSCI_532_viz-2_students/dsci-


532_group-20 (main)
$ heroku ps:scale web=1 -a
» Error: Flag --app expects a value

(base) sakshi@SakshiJain MINGW64 /d/mds/Month4/DSCI_532_viz-2_students/dsci-


532_group-20 (main)
$ heroku ps:scale web=1 group20_demo
» Error: Missing required flag:
» -a, --app APP app to run command against
» See more help with --help

(base) sakshi@SakshiJain MINGW64 /d/mds/Month4/DSCI_532_viz-2_students/dsci-


532_group-20 (main)
$ heroku ps:scale web=1 -app
Scaling dynos... !
! Couldn't find that app.

(base) sakshi@SakshiJain MINGW64 /d/mds/Month4/DSCI_532_viz-2_students/dsci-


532_group-20 (main)

You might also like