-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (37 loc) · 1011 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
PROJECT_ID=wagon-bootcamp-256316
BUCKET_NAME=wagon-ml-bizot-27
# ----------------------------------
# LOCAL SET UP
# ----------------------------------
run_locally:
@python -W ignore -m ${PACKAGE_NAME}.${FILENAME}
install_requirements:
@pip install -r requirements.txt
set_project:
-@gcloud config set project ${PROJECT_ID}
# ----------------------------------
# HEROKU COMMANDS
# ----------------------------------
APP_NAME=taxifare-streamlit
streamlit:
-@streamlit run app_streamlit.py
heroku_login:
-@heroku login
heroku_create_app:
-@heroku create ${APP_NAME}
deploy_heroku:
-@git push heroku master
-@heroku ps:scale web=1
# ----------------------------------
# LOCAL INSTALL COMMANDS
# ----------------------------------
install:
@pip install . -U
clean:
@rm -fr */__pycache__
@rm -fr __init__.py
@rm -fr build
@rm -fr dist
@rm -fr ${PACKAGE_NAME}-*.dist-info
@rm -fr ${PACKAGE_NAME}.egg-info
-@rm model.joblib