<commit_before>DWELL  --  Capistrano recipe to setup a production Rails environment on Ubuntu.


1) Install Capistrano2 if you don't already have it:
$ sudo gem install capistrano

2) Build this gem:
$ gem build dwell.gemspec

3) Install gem with:
$ sudo gem install dwell-0.1.gem



USAGE

1) From within your Rails directory, run:
$ capify .

2) Paste the following into the config/deploy.rb

set :application, "myapp"
set :domain, "myapp.com"
set :deploy_to, "/var/www/#{application}"

# If you aren't using Subversion to manage your source code, specify your SCM below:
# set :scm, :subversion
set :repository,  "set your repository location here"

server :app, :web, :db, "myapp.com", :primary => true


3) Configure, application name, domain, repository location and server name

4) Then run cap dwell:install<commit_msg>Added stack details and todo to README<commit_after>DWELL  --  Capistrano recipe to setup a production Rails environment on Ubuntu.


1) Install Capistrano2 if you don't already have it:
$ sudo gem install capistrano

2) Build this gem:
$ gem build dwell.gemspec

3) Install gem with:
$ sudo gem install dwell-0.1.gem



USAGE

1) From within your Rails directory, run:
$ capify .

2) Paste the following into the config/deploy.rb

set :application, "myapp"
set :domain, "myapp.com"
set :deploy_to, "/var/www/#{application}"

# If you aren't using Subversion to manage your source code, specify your SCM below:
# set :scm, :subversion
set :repository,  "set your repository location here"

server :app, :web, :db, "myapp.com", :primary => true


3) Configure, application name, domain, repository location and server name

4) Then run cap dwell:install



STACK DETAILS

1) Updates Ubuntu sources and distro
2) Installs Apache2
3) Installs MySQL5
4) Installs Subversion and Git
5) Installs Ruby, RubyGems, Rails and Merb
6) Installs Passenger module for Apache2 and creates basic config

TODO

* Generate production mysql db with details from database.yml
* Create enhanced VirtualHost configs for Apache that include SSL
* Configure merb uploader with controls
{'fraction_non_alphanumeric': 0.08045977011494253, 'fraction_numerical': 0.013888888888888888, 'mean_word_length': 4.526455026455026, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6733626', 'n_tokens_mistral': 666, 'n_tokens_neox': 626, 'n_words': 284}