change some defaults for the test enviroment, make a basic install script in bash

This commit is contained in:
Maxwell Salzberg 2012-04-12 20:31:01 -07:00
parent 9e50d0efb6
commit e861357463
2 changed files with 26 additions and 0 deletions

View file

@ -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

22
script/install.sh Executable file
View file

@ -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'"