-
Notifications
You must be signed in to change notification settings - Fork 2
/
vish
executable file
·42 lines (38 loc) · 956 Bytes
/
vish
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
#!/bin/bash
function vishLogo(){
echo "
\ \ / / (_) / ____| | | | |
\ \ / / _ | (___ | |__| |
\ \/ / | | \___ \ | __ |
\ / | | ____) | | | | |
\/ |_| |_____/ |_| |_|
"
}
if [ "$1" = "fix" ];
then
vishLogo
echo "Running Fixes and Starting server..."
echo " "
bundle install; bundle exec rake db:migrate ts:rebuild; rails s
elif [ "$1" = "run" ];
then
vishLogo
echo "Starting server normally..."
echo " "
bundle exec rake ts:start; rails s
elif [ "$1" = "reset" ];
then
vishLogo
echo "Reseting Fulldatabase, Populating and starting server..."
echo " "
bundle exec rake db:reset db:migrate db:populate fix:actorRelations ts:rebuild; rails s
else
vishLogo
echo " "
echo "If you want to VisH application use: ./vish run"
echo " "
echo "If you want to do migrations and reindex do: ./vish fix"
echo " "
echo "For reseting VisH and Populate again run: ./vish reset"
echo " "
fi