Skip to content

Commit fd1e150

Browse files
committed
Revised Getting Started Guides
1 parent 610bf60 commit fd1e150

File tree

5 files changed

+69
-43
lines changed

5 files changed

+69
-43
lines changed

How_to_release_notes.txt

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
Here are the basic steps required to release a new version of the browsercms gem, as well as testing, etc.
22

33
A. Releasing and testing the gem upgrade locally
4-
1. rake version:bump:patch (move from 3.0.1 to 3.0.2, including git commit)
5-
2. rake gemspec (Regenerates the gemspec locally)
6-
3. rake build (Creates the gem, puts into /pkg directory)
7-
4. sudo gem install pkg/browsercms-3.x.gem
8-
5. cd /myproject
9-
6. script/generate browser_cms (Upgrades the project to use the latest gem version)
4+
1. Update the lib/cms/version.rb with the correct version #
5+
2. [sudo] rake build install (Builds the gemspec, builds gem and installs it. Use sudo as needed
6+
4. cd /myproject
7+
5. script/generate browser_cms (Upgrades the project to use the latest gem version)
108

browsercms.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
99

1010
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
1111
s.authors = ["BrowserMedia"]
12-
s.date = %q{2010-01-24}
12+
s.date = %q{2010-01-26}
1313
s.description = %q{Web Content Management in Rails.}
1414
s.email = %q{[email protected]}
1515
s.executables = ["browsercms", "bcms"]

doc/README_FOR_APP

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ API documentation for v3.1.0.
66
== Getting Started (Short Version)
77
The following requires SQLite3 and Rails 2.3.2 (or later).
88

9-
sudo gem install browsercms
9+
gem install browsercms
1010

1111
browsercms project_name -m demo
1212
cd project_name

doc/guides/html/getting_started.html

+28-17
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ <h1>Getting Started</h1>
127127
<div id="subCol">
128128
<h3 class="chapter"><img src="images/chapters_icon.gif" alt="" />Chapters</h3>
129129
<ol class="chapters">
130-
<li><a href="#installing-browsercms">Installing BrowserCMS</a><ul><li><a href="#things-you-need-first">Things you need first</a></li></ul></li><li><a href="#trying-out-browsercms">Trying out BrowserCMS</a><ul><li><a href="#your-first-project">Your first project</a></li><li><a href="#using-your-site">Using your Site</a></li></ul></li><li><a href="#starting-a-real-project">Starting a &#8216;Real&#8217; project</a><ul></ul></li><li><a href="#the-really-short-version">The really short version</a><ul></ul></li><li><a href="#getting-command-line-help">Getting Command line Help</a><ul></ul></li><li><a href="#deploying-to-production">Deploying to production</a><ul></ul></li></ol></div>
130+
<li><a href="#this-guide-assumes">This Guide Assumes</a><ul></ul></li><li><a href="#starting-a-demo-project">Starting a demo project</a><ul><li><a href="#installing-browsercms">Installing BrowserCMS</a></li><li><a href="#creating-a-demo-website">Creating a Demo Website</a></li><li><a href="#using-your-site">Using your Site</a></li></ul></li><li><a href="#starting-a-real-project">Starting a &#8216;Real&#8217; project</a><ul></ul></li><li><a href="#the-short-command">The short command</a><ul></ul></li><li><a href="#getting-command-line-help">Getting Command line Help</a><ul></ul></li><li><a href="#trouble-shooting">Trouble Shooting</a><ul><li><a href="#creation-fails-to-create-mysql-database">Creation fails to create MySQL Database</a></li></ul></li><li><a href="#deploying-to-production">Deploying to production</a><ul></ul></li></ol></div>
131131
</td>
132132
<td class="guides">
133133
<h2>Getting Started</h2>
@@ -137,25 +137,28 @@ <h2>Getting Started</h2>
137137
<li>Create a demo project to explore BrowserCMS</li>
138138
<li>Create a blank project for building a website from scratch</li>
139139
</ul>
140-
<h3 id="installing-browsercms">1 Installing BrowserCMS</h3>
141-
<p>BrowserCMS is packaged as a gem which can be included in any Rails project. The gem contains the code for the cms application itself, as well as public assets, including stylesheets, images and javascript. These assets will be copied from the gem into your project as part of the install process.</p>
142-
<p>The gem is hosted at Gemcutter, so you can install it by doing:</p>
143-
<div class="code_container"><code class="html">$ sudo gem install browsercms</code></div>
144-
<h4 id="things-you-need-first">1.1 Things you need first</h4>
140+
<h3 id="this-guide-assumes">1 This Guide Assumes</h3>
145141
<p>Before you can create a project using BrowserCMS, you will need to have the following installed.</p>
146142
<ol>
147-
<li><strong>Rails 2.3</strong> (or later) &#8211; We make use of some of the newer features from Rails like application generator templates.</li>
148-
<li><strong>A Database</strong> &#8211; Either Mysql or the Sqlite gems should be installed.</li>
143+
<li>The <a href="http://www.ruby-lang.org/en/downloads">Ruby</a> Language</li>
144+
<li>The <a href="http://rubyforge.org/frs/?group_id=126">RubyGems</a> packaging system</li>
145+
<li>The <a href="http://rubyonrails.org/download">Rails</a> framework (2.3 or later &#8211; But not 3.0 yet)</li>
146+
<li>A working installation of <a href="http://www.sqlite.org/">SQLite</a> or <a href="http://www.mysql.com/">MySQL</a> as well as the gems for your database of choice.</li>
149147
</ol>
150-
<h3 id="trying-out-browsercms">2 Trying out BrowserCMS</h3>
151-
<p>This section will cover how to create a demo project using BrowserCMS, so you can play around with it. It will create a sample project, with some pages and content to play around with.</p>
152-
<h4 id="your-first-project">2.1 Your first project
153-
BrowserCMS</h4>
148+
<h3 id="starting-a-demo-project">2 Starting a demo project</h3>
149+
<p>This section of the guide will cover creating a sample website with BrowserCMS, using a demo website layout and content.
150+
The goal is to give you some content and templates to play with to explore the <span class="caps">CMS</span>. Later sections of this guide will
151+
cover the more common cases where you are creating a new website from scratch and want only the bare minimums.</p>
152+
<h4 id="installing-browsercms">2.1 Installing BrowserCMS</h4>
153+
<p>BrowserCMS is packaged as a gem which can be included in any Rails project. To install the gem, do the following:</p>
154+
<div class="code_container"><code class="html">$ gem install browsercms</code></div>
155+
<h4 id="creating-a-demo-website">2.2 Creating a Demo Website</h4>
156+
<p>Run the following from your terminal window.</p>
154157
<div class="code_container"><code class="html">$ browsercms project_name -m demo
155158
$ cd project_name
156159
$ script/server</code></div>
157-
<p>By default, Rails assumes that if you do not specify a -d flag, that you want to use SQLite as your project&#8217;s database. You need to have the sqlite3-ruby gem installed for this to work.</p>
158-
<h4 id="using-your-site">2.2 Using your Site</h4>
160+
<p>This will create a BrowserCMS project which used SQLite as the data storage. You need to have the sqlite3-ruby gem installed for this to work.</p>
161+
<h4 id="using-your-site">2.3 Using your Site</h4>
159162
<p>Open your browser to <a href="http://localhost:3000/cms">http://localhost:3000/cms</a> to log into the admin for the <span class="caps">CMS</span>. Enter the default username/password (in development mode) is username=cmsadmin, password=cmsadmin. You should be now be logged in, viewing the home page of the site. You can now edit or add new content via the admin interface.</p>
160163
<p>To learn more about the types of things you can do with BrowserCMS, see the <a href="user_guide.html">User&#8217;s Guide</a>.</p>
161164
<h3 id="starting-a-real-project">3 Starting a &#8216;Real&#8217; project</h3>
@@ -170,16 +173,24 @@ <h3 id="starting-a-real-project">3 Starting a &#8216;Real&#8217; project</h3>
170173
the database, migrate the db, populate it with the bare minimum content it needs, and copy all of the necessary files
171174
from the gem into the rails project. Open your browser to <a href="http://localhost:3000/cms">http://localhost:3000/cms</a> to log in,
172175
using cmsadmin/cmsadmin as the username/password.</p>
173-
<h3 id="the-really-short-version">4 The really short version</h3>
174-
<p>There is a shorter version of the commandline script, which works identically to the longer form detailed above.</p>
176+
<h3 id="the-short-command">4 The short command</h3>
177+
<p>There is a shorter version of the command line script, which works identically to the longer form detailed above.</p>
175178
<div class="code_container"><code class="html">$ bcms project_name -d mysql</code></div>
176179
<p>No difference in functionality, just less to type.</p>
177180
<h3 id="getting-command-line-help">5 Getting Command line Help</h3>
178181
<p>You can get assistance from the commandline tool by running <tt>browsercms</tt> with no arguments, like so:</p>
179182
<div class="code_container"><code class="html">$ browsercms</code></div>
180183
<p>This will show common usages, as well as all the help options available. The <tt>browsercms</tt> command piggybacks on top of the
181184
<tt>rails</tt> command, so many of the options available are the same as <tt>rails</tt>, including <tt>-f</tt> or <tt>--force</tt>.</p>
182-
<h3 id="deploying-to-production">6 Deploying to production</h3>
185+
<h3 id="trouble-shooting">6 Trouble Shooting</h3>
186+
<p>This section covers some potential problems you might run into when trying to create a BrowserCMS project.</p>
187+
<h4 id="creation-fails-to-create-mysql-database">6.1 Creation fails to create MySQL Database</h4>
188+
<p>BrowserCMS will attempt to create and populate the database. When running against mysql, Rails will assume you have a username called <tt>root</tt> with an empty password.
189+
The database create/migrations will fail if you don&#8217;t have that username/password set. If this occurs, you can update the config/database.yml with correct username/password
190+
and rerun the <tt>bcms</tt> command which will regenerate the entire project.</p>
191+
Choose &#8216;n&#8217; (No) when it prompts you to overwrite the config/database.yml and then &#8216;a&#8217; (Overwrite all) for all files after that.
192+
This should complete the project generation using the new username/password.
193+
<h3 id="deploying-to-production">7 Deploying to production</h3>
183194
<p>Once you get ready to start deploying your application into production environments, be sure to review the <a href="deployment_guide.html">Deployment Guide</a>.
184195
There are several &#8216;gotchas&#8217; to be aware of that may differ from deploying other Rails applications.</p>
185196
</td>

doc/guides/source/getting_started.textile

+35-18
Original file line numberDiff line numberDiff line change
@@ -4,41 +4,44 @@ The purpose of this guide is help new developers get up and running with Browser
44

55
* Install the BrowserCMS gem
66
* Create a demo project to explore BrowserCMS
7-
* Create a blank project for building a website from scratch
7+
* Create a blank project for building a website from scratch
88

99
endprologue.
1010

11-
h3. Installing BrowserCMS
11+
h3. This Guide Assumes
1212

13-
BrowserCMS is packaged as a gem which can be included in any Rails project. The gem contains the code for the cms application itself, as well as public assets, including stylesheets, images and javascript. These assets will be copied from the gem into your project as part of the install process.
13+
Before you can create a project using BrowserCMS, you will need to have the following installed.
1414

15-
The gem is hosted at Gemcutter, so you can install it by doing:
15+
# The "Ruby":http://www.ruby-lang.org/en/downloads Language
16+
# The "RubyGems":http://rubyforge.org/frs/?group_id=126 packaging system
17+
# The "Rails":http://rubyonrails.org/download framework (2.3 or later - But not 3.0 yet)
18+
# A working installation of "SQLite":http://www.sqlite.org/ or "MySQL":http://www.mysql.com/ as well as the gems for your database of choice.
1619

17-
<shell>
18-
$ sudo gem install browsercms
19-
</shell>
20+
h3. Starting a demo project
2021

21-
h4. Things you need first
22+
This section of the guide will cover creating a sample website with BrowserCMS, using a demo website layout and content.
23+
The goal is to give you some content and templates to play with to explore the CMS. Later sections of this guide will
24+
cover the more common cases where you are creating a new website from scratch and want only the bare minimums.
2225

23-
Before you can create a project using BrowserCMS, you will need to have the following installed.
26+
h4. Installing BrowserCMS
2427

25-
# *Rails 2.3* (or later) - We make use of some of the newer features from Rails like application generator templates.
26-
# *A Database* - Either Mysql or the Sqlite gems should be installed.
28+
BrowserCMS is packaged as a gem which can be included in any Rails project. To install the gem, do the following:
2729

28-
h3. Trying out BrowserCMS
30+
<shell>
31+
$ gem install browsercms
32+
</shell>
2933

30-
This section will cover how to create a demo project using BrowserCMS, so you can play around with it. It will create a sample project, with some pages and content to play around with.
34+
h4. Creating a Demo Website
3135

32-
h4. Your first project
33-
BrowserCMS
36+
Run the following from your terminal window.
3437

3538
<shell>
3639
$ browsercms project_name -m demo
3740
$ cd project_name
3841
$ script/server
3942
</shell>
4043

41-
By default, Rails assumes that if you do not specify a -d flag, that you want to use SQLite as your project's database. You need to have the sqlite3-ruby gem installed for this to work.
44+
This will create a BrowserCMS project which used SQLite as the data storage. You need to have the sqlite3-ruby gem installed for this to work.
4245

4346
h4. Using your Site
4447

@@ -65,9 +68,9 @@ the database, migrate the db, populate it with the bare minimum content it needs
6568
from the gem into the rails project. Open your browser to "http://localhost:3000/cms":http://localhost:3000/cms to log in,
6669
using cmsadmin/cmsadmin as the username/password.
6770

68-
h3. The really short version
71+
h3. The short command
6972

70-
There is a shorter version of the commandline script, which works identically to the longer form detailed above.
73+
There is a shorter version of the command line script, which works identically to the longer form detailed above.
7174

7275
<shell>
7376
$ bcms project_name -d mysql
@@ -86,6 +89,20 @@ $ browsercms
8689
This will show common usages, as well as all the help options available. The +browsercms+ command piggybacks on top of the
8790
+rails+ command, so many of the options available are the same as +rails+, including +-f+ or +--force+.
8891

92+
h3. Trouble Shooting
93+
94+
This section covers some potential problems you might run into when trying to create a BrowserCMS project.
95+
96+
h4. Creation fails to create MySQL Database
97+
98+
BrowserCMS will attempt to create and populate the database. When running against mysql, Rails will assume you have a username called +root+ with an empty password.
99+
The database create/migrations will fail if you don't have that username/password set. If this occurs, you can update the config/database.yml with correct username/password
100+
and rerun the +bcms+ command which will regenerate the entire project.
101+
102+
Choose 'n' (No) when it prompts you to overwrite the config/database.yml and then 'a' (Overwrite all) for all files after that.
103+
This should complete the project generation using the new username/password.
104+
105+
89106
h3. Deploying to production
90107

91108
Once you get ready to start deploying your application into production environments, be sure to review the "Deployment Guide":deployment_guide.html.

0 commit comments

Comments
 (0)