Permalink
Browse files

fixup formatting of readme

  • Loading branch information...
1 parent 716e3e8 commit 4bf9f9bb088fe5d0d1304b3e7c1bdde4aa074c6c @jnewland jnewland committed Dec 18, 2008
Showing with 48 additions and 48 deletions.
  1. +48 −48 README.textile
View
@@ -6,33 +6,33 @@ h2. Update Gems
Install the latest version of the "railsmachine gem":http://github.com/railsmachine/railsmachine:
-<code>
- <pre>
+<pre>
+ <code>
$ sudo gem install railsmachine
- </pre>
-</code>
+ </code>
+</pre>
h2. Install Phusion Passenger and Ruby Enterprise Edition
If you do not have Phusion Passenger and Ruby Enterprise Edition installed on your Rails Machine yet you can run this installer on your server.
-<code>
- <pre>
+<pre>
+ <code>
$ wget http://assets.railsmachine.com/wiki/centos_passenger_install.sh
$ sh centos_passenger_install.sh
- </pre>
-</code>
+ </code>
+</pre>
h2. Setup Capistrano
Capify your application:
-<code>
- <pre>
+<pre>
+ <code>
$ capify .
- </pre>
-</code>
+ </code>
+</pre>
h2. Configure Capistrano for Rails Machine
@@ -43,11 +43,11 @@ The following step customizes your @config/deploy.rb@ with two bits of informati
* *@--domain@*: the primary domain name for your application. please omit the 'www' - we automaticaly alias www.whateveryouprovide.com as needed.
** example: my-cool-app.com
-<code>
- <pre>
+<pre>
+ <code>
$ railsmachine --apply-to . --name my-cool-app --domain my-cool-app.com
- </pre>
-</code>
+ </code>
+</pre>
Please note that the domain name provided will need to be correctly pointed at your Rails Machine account. If you don't have a DNS provider, we've been more than happy with "DNS Made Easy":http://dnsmadeeasy.com.
@@ -59,75 +59,75 @@ h2. Application Setup
Rails Machine defaults to using mongrel + mod_proxy_balancer to run your Rails Application. If you'd like to switch to "Phusion Passenger":http://www.modrails.com/, edit the line in your application's @config/deploy.rb@ that begins @set :app_server@ to reflect your choice. For example:
-<code>
- <pre>
+<pre>
+ <code>
set :app_server, :passenger
- </pre>
-</code>
+ </code>
+</pre>
Run the following Capistrano task to setup your MySQL databases and configure your application servers (mongrel/passenger):
-<code>
- <pre>
+<pre>
+ <code>
$ cap servers:setup
- </pre>
-</code>
+ </code>
+</pre>
h2. Source Control
h3. If you're already using Source Control...
...edit the lines in your application's @config/deploy.rb@ that begin @set :repository@ and @set :repository@. For example:
-<code>
- <pre>
+<pre>
+ <code>
set :scm, :git
set :repository, "git@github.com:yourname/my-cool-app.git"
- </pre>
-</code>
+ </code>
+</pre>
h3. If you're not yet using Source Control...
...you can easily setup a Git/Subversion repository on your Rails Machine. Subversion is the default, edit the line in your application's @config/deploy.rb@ that begins @set :scm@ if you'd like to change it to git. For example:
-<code>
- <pre>
+<pre>
+ <code>
set :scm, :git
- </pre>
-</code>
+ </code>
+</pre>
Next, run the following task to import your application into a Git/SVN repository on your Rails Machine:
-<code>
- <pre>
+<pre>
+ <code>
$ cap repos:setup
- </pre>
-</code>
+ </code>
+</pre>
h2. Initial Deploy
That's it! You're ready to use Capistrano to deploy your app for the first time:
-<code>
- <pre>
+<pre>
+ <code>
$ cap deploy:cold
- </pre>
-</code>
+ </code>
+</pre>
Once that's done, open your application in a web browser and test it out!
To perform a subsequent deploy with Capistrano:
-<code>
- <pre>
+<pre>
+ <code>
$ cap deploy
- </pre>
-</code>
+ </code>
+</pre>
or, if you need to run migrations as well:
-<code>
- <pre>
+<pre>
+ <code>
$ cap deploy:migrations
- </pre>
-</code>
+ </code>
+</pre>

0 comments on commit 4bf9f9b

Please sign in to comment.