Ruby Rail First Step: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 12: | Line 12: | ||
<pre>rake db:create</pre> | <pre>rake db:create</pre> | ||
# Start the server | |||
<pre>rails server</pre> | <pre>rails server</pre> | ||
# Visite the web site | |||
[http://localhost:3000] |
Revision as of 19:13, 13 November 2014
- Your first application with MySQL
rails new firstapp -d mysql
- Move into the application directory
cd firstapp
- If you setup MySQL or Postgres with a username/password, modify the
- config/database.yml file to contain the username/password that you specified
- Create the database
rake db:create
- Start the server
rails server
- Visite the web site