/
install.sh
executable file
·39 lines (39 loc) · 1.91 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
echo " _ _"
echo " /\\ (_) (_)"
echo " / \\ _ _ __ ___ ___ _ ___"
echo " / /\\ \\ | | '__/ _ \\/ __| / __|"
echo " / ____ \\| | | | __/\\__ \\ \\__ \\"
echo " /_/ \\_\\_|_| \\___||___/_|___/"
echo " The Social Network for E-Democracy"
echo ""
echo "=====Welcome in Airesis Setup====="
echo "=================================="
echo ""
echo "We'll ask you some information to help you configure your Airesis Development Environment."
echo "We will ask you some questions where you have to choose and identify default option with round parethesis."
echo "Something like: 'Press Y or (N)'."
echo "If you press y or Y will be yes, if you press n, N or Enter will be no."
echo "We suggest you to keep default configuration if that is your first configuration."
echo "Press ENTER when you are ready to proceed"
read
cp config/database.example.yml config/database.yml
cp config/application.example.yml config/application.yml
cp config/private_pub.example.yml config/private_pub.yml
cp config/sidekiq.example.yml config/sidekiq.yml
mkdir -p private/elfinder
echo "Please check your config/database.yml, setup it correctly and then continue."
echo "Press ENTER when you have configured your config/database.yml file"
read
echo "I will install necessary gems."
echo "Press ENTER"
read
bundle install
echo "We will now create the database with initial data inside it. We'll delete all the data that are already present in the database."
echo "Please wait, it will take some time...and if you are wondering, NO. IT'S NOT STUCK!"
echo "Press ENTER when you are ready to proceed and take a coffee"
read
bundle exec rake db:drop db:setup
echo ""
echo "OK! Well done! We have finished! Now just start your Airesis environment with rails s and if something goes wrong please blame the developer."
echo "If you want to change other options please edit '#{environmentfilename}'"
echo "See ya and Happy edemocracy!"