Changeset 101

Show
Ignore:
Timestamp:
06/22/07 15:05:57 (2 years ago)
Author:
mbailey
Message:

updated with svn+trac instructions

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1-7-stable/docs/README.slicehost

    r83 r101  
    1 == Slicehost 
     1== deprec quickstart for Slicehost 
    22 
    3 # A freshly built slice gives you the root account 
    4 # This creates a user account with sudo access 
    5 # The '_as_root' means 'log in as root to do this' 
     3Here are instructions that will take a fresh install of Ubuntu Dapper (6.06.1 server), create an SVN repository and trac installation for your project and deploy the application using apache, mongrel and mysql. 
     4 
     5All commands below are run on your local host. You will *never* be requested  
     6to log into the remote server manually. Capistrano does all the work. 
     7 
     8- Mike 
     9 
     10 
     11# Install deprec on workstation 
     12sudo gem install deprec --include-dependencies 
     13echo 'require "deprec/recipes"'               >> ~/.caprc 
     14echo 'ssh_options[:keys] = %w(~/.ssh/id_dsa)' >> ~/.caprc 
     15echo 'ssh_options[:paranoid] = false'         >> ~/.caprc 
     16echo 'ssh_options[:forward_agent] = true'     >> ~/.caprc 
     17 
     18# Setup user account with sudo access on remote server 
    619# 
    720export HOSTS=deptest.deprecated.org 
    8 cap change_root_password_as_root 
    9 cap setup_admin_account_as_root # XXX echo new username 
    10 cap setup_ssh_keys  # XXX do for others also 
     21cap change_root_password_as_root # '_as_root' means run this as 'root' user 
     22cap setup_admin_account_as_root  
     23cap setup_ssh_keys   
    1124 
    12 cap install_rails_stack 
    13 cap php_install 
     25# Install all required software on remote server 
     26cap install_rails_stack svn_install trac_install 
     27 
     28# Create rails project on workstation and configure for deprec 
     29rails example 
     30cd example 
     31./script/generate scaffold_resource person name:string age:integer 
     32deprec --apply-to . --name example --domain www.example.com 
     33 
     34# Import application into subversion respository and setup trac 
     35cap svn_setup 
     36cap trac_setup 
     37cap trac_user_add 
     38cap trac_start # trac is now available on http://www.example.com:9000/ 
     39cap trac_stop  # if you had the need 
     40 
     41# Deploy application 
    1442cap setup 
    1543cap deploy_with_migrations 
    16 cap restart_apache 
    17  
    18 # check README.svn_trac 
    19  
     44cap apache_restart  
     45# application is now running on http://www.example.com/