Skip to content

Commit

Permalink
slightly modify instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
firasm committed Mar 7, 2022
1 parent d5dbc3a commit ac65ced
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions class/4-maps-deployment.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@
"pandas\n",
"gunicorn\n",
"altair\n",
"dash==1.18.1\n",
"dash\n",
"dash_bootstrap_components\n",
"plotly==4.14.3\n",
"plotly\n",
"```\n",
"\n",
"## gunicorn\n",
Expand All @@ -107,7 +107,6 @@
"`gunicorn` is a HTTP server specifically for Python web applications which runs natively in Unix.\n",
"You also need to create a `Procfile` which tells Heroku\n",
"where your main app file is located and that you want to use `gunicorn` to run it.\n",
"This line will work if it is in `src/app.py`:\n",
"\n",
"```\n",
"web: gunicorn app:server\n",
Expand Down Expand Up @@ -135,10 +134,12 @@
"\n",
"\n",
"```bash\n",
"heroku create my-dash-app # change my-dash-app to a unique name\n",
"git init # this will initialize your folder as a local git repo\n",
"git add . # add the files you need to git\n",
"git commit -m 'Initial app boilerplate'\n",
"git push heroku master # deploy code to the heroku repos master branch\n",
"heroku create my-dash-app # change my-dash-app to a unique name\n",
"git remote -v # check to make sure `heroku` is set as the remote\n",
"git push heroku main # deploy code to the heroku repos main branch\n",
"```\n",
"\n",
"If you are prompted to login when pushing, \n",
Expand Down Expand Up @@ -3833,7 +3834,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.7"
"version": "3.10.2"
},
"nteract": {
"version": "0.28.0"
Expand Down

0 comments on commit ac65ced

Please sign in to comment.