Skip to content
Browse files

Minor README corrections, whitespace

  • Loading branch information...
1 parent 0a8dfb0 commit f3b042bd0a8b3446ed5754d8c67c8ac22281c640 @ches ches committed with ches Sep 26, 2009
Showing with 17 additions and 17 deletions.
  1. +13 −13 README
  2. +4 −4 README.textile
View
26 README
@@ -1,26 +1,26 @@
Five Minute Rails Application Deployment
-Ready to deploy your Rails application to Rails Machine? Follow these steps and you’ll have it running in no time! Free to utilize Rails Machine’s Ask Us Anything Support and contact us with any questions you have along the way.
+Ready to deploy your Rails application to Rails Machine? Follow these steps and you’ll have it running in no time! Feel free to utilize Rails Machine’s Ask Us Anything Support and contact us with any questions you have along the way.
Update Gems
Install the latest version of the railsmachine gem:
$ sudo gem install railsmachine
-
+
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.
$ wget http://assets.railsmachine.com/wiki/centos_passenger_install.sh
$ sh centos_passenger_install.sh
-
+
Setup Capistrano
Capify your application:
$ capify .
-
+
Configure Capistrano for Rails Machine
The following step customizes your config/deploy.rb with two bits of information you provide:
@@ -30,7 +30,7 @@ example: my-cool-app
--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
$ railsmachine --apply-to . --name my-cool-app --domain my-cool-app.com
-
+
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.
Update Database Config
@@ -42,42 +42,42 @@ 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, edit the line in your application’s config/deploy.rb that begins set :app_server to reflect your choice. For example:
set :app_server, :passenger
-
+
Run the following Capistrano task to setup your MySQL databases and configure your application servers (mongrel/passenger):
$ cap servers:setup
-
+
Source Control
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:
+...edit the lines in your application’s config/deploy.rb that begin set :scm and set :repository. For example:
set :scm, :git
set :repository, "git@github.com:yourname/my-cool-app.git"
-
+
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:
set :scm, :git
-
+
Next, run the following task to import your application into a Git/SVN repository on your Rails Machine:
$ cap repos:setup
-
+
Initial Deploy
That’s it! You’re ready to use Capistrano to deploy your app for the first time:
$ cap deploy:cold
-
+
Once that’s done, open your application in a web browser and test it out!
To perform a subsequent deploy with Capistrano:
$ cap deploy
-
+
or, if you need to run migrations as well:
$ cap deploy:migrations
View
8 README.textile
@@ -18,8 +18,8 @@ If you do not have Phusion Passenger and Ruby Enterprise Edition installed on yo
<pre>
<code>
- $ wget http://assets.railsmachine.com/wiki/centos_passenger_install.sh
- $ sh centos_passenger_install.sh
+ $ wget http://assets.railsmachine.com/wiki/centos_passenger_install.sh
+ $ sh centos_passenger_install.sh
</code>
</pre>
@@ -77,7 +77,7 @@ 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:
+...edit the lines in your application's @config/deploy.rb@ that begin @set :scm@ and @set :repository@. For example:
<pre>
<code>
@@ -130,4 +130,4 @@ or, if you need to run migrations as well:
<code>
$ cap deploy:migrations
</code>
-</pre>
+</pre>

0 comments on commit f3b042b

Please sign in to comment.
Something went wrong with that request. Please try again.