-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
48 lines (45 loc) · 1.36 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR
source utils.sh
source spinner.sh
SPINNER_SYMBOLS="WIDE_UNI_GREYSCALE"
virtualenv venv
ln -sf develop.cfg buildout.cfg
# fix setuptools bug
venv/bin/pip install setuptools==38.7.0
venv/bin/python bootstrap-buildout.py
spinner &
bin/buildout -qq
touch stopspinning
echo "----> Adding a Plone site"
bin/instance run scripts/addSite.py Plone
if [ $? -gt 0 ]; then
e_error "There was a problem during installation"
echo " Go to your buildout folder ($DIR)"
echo " and try running the 'bin/buildout' command"
exit 1
fi
clear
e_header "==============="
echo " "
echo "__________ .__ __ "
echo "\______ \ ____ ____ _____|__|/ |_ ____ "
echo " | _// _ \ / _ \/ ___/ \ __\/ __ \ "
echo " | | ( <_> | <_> )___ \| || | \ ___/ "
echo " |____|_ /\____/ \____/____ >__||__| \___ >"
echo " \/ \/ \/ "
echo " "
e_header "You're all set!"
echo " "
echo "Congrat! You've setup a Plone dev environment at $DIR"
echo " "
echo "To get started, run the following commands"
echo " "
echo " cd $DIR"
echo " bin/instance fg"
echo " "
echo "Once it has started, visit your new site at http://localhost:8080"
echo " "
echo "Your login credentials are admin:admin"
echo " "