forked from magfest/reggie-formula
-
Notifications
You must be signed in to change notification settings - Fork 0
/
post.sh
47 lines (34 loc) · 1.14 KB
/
post.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
if [ "$SYNC_FOLDER" = "/home/vagrant/init" ] ; then
exit
else
if [ -d /home/vagrant/reggie-formula/reggie_install/plugins/uber ] ; then
salt reggie state.apply
cat << POST
All done!
event_name: "$EVENT_NAME"
event_year: "$EVENT_YEAR"
To login to your new development machine run:
vagrant ssh
The machine is configured using salt (minion id is 'reggie'):
sudo salt reggie state.apply
Shortcut aliases have been installed for you:
alias run_server='reggie-formula/reggie_install/env/bin/python reggie-formula/reggie_install/run_server.py'
The reggie virtualenv has been added to your path, along with a custom python startup:
export PYTHONSTARTUP=\"/home/vagrant/.pythonstartup.py\"
export PATH=\"reggie-formula/reggie_install/env/bin:$PATH\"
The following services have been installed with systemd:
reggie
+- reggie-web
+- reggie-worker
+- reggie-scheduler
You can access the web interface at:
https://localhost:4443
Username: [email protected]
Password: magfest
POST
else
cat << ERROR
Sorry your install failed please inspect install.log
ERROR
fi
fi