From e861357463a5a5b13452d851706674ce2015bfd2 Mon Sep 17 00:00:00 2001 From: Maxwell Salzberg Date: Thu, 12 Apr 2012 20:31:01 -0700 Subject: [PATCH] change some defaults for the test enviroment, make a basic install script in bash --- config/application.yml.example | 4 ++++ script/install.sh | 22 ++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100755 script/install.sh diff --git a/config/application.yml.example b/config/application.yml.example index 164768668..2b3cd6ae6 100644 --- a/config/application.yml.example +++ b/config/application.yml.example @@ -203,9 +203,13 @@ development: <<: *defaults serve_static_assets: true no_follow_diasporahq: true + single_process_mode: true production: <<: *defaults + pod_url: "http://example.com" + single_process_mode: false + serve_static_assets: false # # Do not touch unless you know what you're doing diff --git a/script/install.sh b/script/install.sh new file mode 100755 index 000000000..c2b3dd04d --- /dev/null +++ b/script/install.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +# echo "downloading diaspora" +#git clone git@github.com:diaspora/diaspora.git + +# echo 'moving into diaspora' +#cd diaspora + +echo "initializing Diaspora*" +echo "copying database.yml.example to database.yml" +cp config/database.yml.example config/database.yml + +echo "copying application.yml.example to application.yml" +cp config/application.yml.example config/application.yml + +echo "bundling..." +bundle install + +echo "creating and migrating default database in config/database.yml. please wait..." +rake db:create db:migrate --trace + +echo "It worked! now start your server in development mode with 'rails s'" \ No newline at end of file