-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup-web2py.sh
executable file
·43 lines (36 loc) · 978 Bytes
/
setup-web2py.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
#!/usr/bin/env bash
if [ -f "./web2py/web2py.py" ]
then
echo "web2py already downloded"
else
wget http://www.web2py.com/examples/static/web2py_src.zip
unzip -o web2py_src.zip
rm web2py_src.zip
fi
if [ -d "node_modules" ]
then
echo "node modules already downloded"
else
npm install
fi
if [ -d "./web2py/applications/init/00_local" ]
then
echo "init/00_local folder already exists"
else
cp -rf "./web2py/applications/init/00_local.example" "./web2py/applications/init/00_local"
fi
if [ -d "./web2py/applications/init/static" ]
then
echo "init/static folder already exists"
else
cp -rf "./web2py/applications/init/static.example" "./web2py/applications/init/static"
fi
if [ -d "./web2py/app.yaml" ]
then
echo "app.yaml already exists"
else
cp "./web2py/app.example.yaml" "./web2py/app.yaml"
fi
# Gulp is always good
gulp sass
gulp uglify