Sha256: fc927f443d2e1febc053e4269568a35ef98db0dec06288df24b5daa2a941ea03

Contents?: true

Size: 1.86 KB

Versions: 147

Compression:

Stored size: 1.86 KB

Contents

#
# Old notes - YMMV
#

== deprec quickstart (with svn, trac and deployment to apache/mongrel/mysql)

Here are instructions that will take a fresh install of Ubuntu Dapper (6.06.1 server), create a working rails app, create an SVN repository and trac installation for it and deploy it using apache, mongrel and mysql.

All commands below are run on your local host. You will *never* be requested 
to log into the remote server manually. Capistrano does all the work.

- Mike

# Install deprec on workstation
sudo gem install deprec --include-dependencies
echo 'require "deprec/recipes"'               >> ~/.caprc
echo "ssh_options[:keys] = %w(${HOME}/.ssh/id_dsa)" >> ~/.caprc
echo 'ssh_options[:paranoid] = false'         >> ~/.caprc
echo 'ssh_options[:forward_agent] = true'     >> ~/.caprc

# Create rails project on workstation and configure for deprec
# (alternatively use an existing project)
rails example
cd example
./script/generate scaffold_resource person name:string age:integer
deprec --apply-to . --name example --domain www.example.com

# NOTE! Use following two commands if you only have 'root' account on server
# Some VPS services provide you with this when you sign up
cap change_root_password_as_root # '_as_root' means run this as 'root' user
cap setup_admin_account_as_root 

# Copy your ssh keys to remote server to avoid having to type passwords
cap setup_ssh_keys

# Install all required software on remote server
cap install_rails_stack svn_install trac_install

# Import application into subversion respository and setup trac
cap svn_setup
cap trac_setup
cap trac_user_add # this command allows you to create other trac users
cap trac_start # trac is now available on http://www.example.com:9000/
cap trac_stop  # if you had the need

# Deploy application
cap setup
cap deploy_with_migrations
cap apache_restart 
# application is now running on http://www.example.com/people

Version data entries

147 entries across 147 versions & 7 rubygems

Version Path
Empact-deprec-1.99.21 docs/deprec-1.x/deprec-1.x.quickstart
andyh-deprec-1.99.26 docs/deprec-1.x/deprec-1.x.quickstart
andyh-deprec-1.99.27 docs/deprec-1.x/deprec-1.x.quickstart
isaac-deprec-1.99.30 docs/deprec-1.x/deprec-1.x.quickstart
isaac-deprec-1.99.32 docs/deprec-1.x/deprec-1.x.quickstart
le1t0-deprec-2.1.6.088 docs/deprec-1.x/deprec-1.x.quickstart
le1t0-deprec-2.1.6.087 docs/deprec-1.x/deprec-1.x.quickstart
deprec-3.1.0.rc16 docs/deprec-1.x/deprec-1.x.quickstart
deprec-3.1.0.rc15 docs/deprec-1.x/deprec-1.x.quickstart
le1t0-deprec-2.1.6.086 docs/deprec-1.x/deprec-1.x.quickstart
le1t0-deprec-2.1.6.085 docs/deprec-1.x/deprec-1.x.quickstart
le1t0-deprec-2.1.6.084 docs/deprec-1.x/deprec-1.x.quickstart
le1t0-deprec-2.1.6.083 docs/deprec-1.x/deprec-1.x.quickstart
le1t0-deprec-2.1.6.082 docs/deprec-1.x/deprec-1.x.quickstart
deprec-3.1.0.rc13 docs/deprec-1.x/deprec-1.x.quickstart
deprec-3.1.0.rc12 docs/deprec-1.x/deprec-1.x.quickstart
deprec-3.1.0.rc11 docs/deprec-1.x/deprec-1.x.quickstart
deprec-3.1.0.rc10 docs/deprec-1.x/deprec-1.x.quickstart
deprec-3.1.0.rc9 docs/deprec-1.x/deprec-1.x.quickstart
deprec-3.1.0.rc8 docs/deprec-1.x/deprec-1.x.quickstart