-
Notifications
You must be signed in to change notification settings - Fork 3
/
install.sh
37 lines (25 loc) · 925 Bytes
/
install.sh
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
#!/bin/bash
# exit when any command fails
set -e
# keep track of the last executed command
trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG
# echo an error message before exiting
trap 'echo "\"${last_command}\" command filed with exit code $?."' EXIT
clear
printf "Using Homebrew to Install Heroku CLI\n"
brew install heroku/brew/heroku
printf "Success! \n\n"
printf "Using Homebrew to Install Zeit Now CLI\n"
brew cask install now
printf "Success! \n\n"
printf "Using Homebrew to Install Pipenv CLI\n"
brew install pipenv
printf "Success! \n\n"
printf "Dependencies installed successfully.\n\n"
printf "Installing pip packages\n"
pipenv install
printf "Packages installed successfully.\n\n"
printf "Running database migrations\n"
pipenv run migrate
printf "Migrations were performed successfully.\n\n"
echo "Installation was successful. type `pipenv run start` to begin the dev server."