Commit 6eab8e72dc468fae728df71b2c5d8f0371f67d73
1 parent
4874ec81
Exists in
master
and in
29 other branches
Adding quick start script for Debian users
Showing
1 changed file
with
39 additions
and
0 deletions
Show diff stats
@@ -0,0 +1,39 @@ | @@ -0,0 +1,39 @@ | ||
1 | +#!/bin/sh | ||
2 | + | ||
3 | +say() { | ||
4 | + echo -e "\033[33;01m$@\033[m" | ||
5 | +} | ||
6 | + | ||
7 | +run() { | ||
8 | + say "\$ $@" | ||
9 | + echo "$@" | sh | ||
10 | + status="$?" | ||
11 | + if [ $status -ne 0 ]; then | ||
12 | + say "E: The command \"$@\" failed with status code $status, we cannot proceed." | ||
13 | + say "I: If you have no idea of what went wrong, please feel free to ask for help in the Noosfero community. Check the contact information in the project website (http://noosfero.org/)." | ||
14 | + exit 1 | ||
15 | + fi | ||
16 | +} | ||
17 | + | ||
18 | +# Until Lenny tango-icon-theme is only available in non-free, so maybe we need | ||
19 | +# to download it manually | ||
20 | +run "sudo apt-get -y install tango-icon-theme || (wget http://ftp.br.debian.org/debian/pool/non-free/t/tango-icon-theme/tango-icon-theme_0.8.1-4_all.deb && sudo dpkg -i tango-icon-theme_0.8.1-4_all.deb)" | ||
21 | + | ||
22 | +# needed to run noosfero | ||
23 | +run sudo apt-get -y install rails ruby rake libgettext-ruby1.8 libsqlite3-ruby rcov librmagick-ruby libredcloth-ruby libwill-paginate-ruby iso-codes libfeedparser-ruby libferret-ruby libdaemons-ruby mongrel mongrel-cluster | ||
24 | + | ||
25 | +# needed for development | ||
26 | +run sudo apt-get -y install libtidy-ruby libhpricot-ruby libmocha-ruby imagemagick po4a xvfb | ||
27 | + | ||
28 | +# create the database with sample data | ||
29 | +run cp config/database.yml.sqlite3 config/database.yml | ||
30 | +run rake db:schema:load | ||
31 | +run ./script/sample-data | ||
32 | + | ||
33 | +# compile translations | ||
34 | +run rake noosfero:translations:compile | ||
35 | + | ||
36 | +# start server | ||
37 | +say "I: Congratulations, you are ready to run Noosfero." | ||
38 | +say "I: To execute Noosfero server, run \`/script/server\` and browse to http://localhost:3000" | ||
39 | +say "I: To execute Noosfero tests, run \`rake\`." |