This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby-merb@localhost ~/merb-project $ git init | |
Initialized empty Git repository in /home/ruby-merb/merb-project/.git/ | |
ruby-merb@localhost ~/merb-project $ git add . | |
ruby-merb@localhost ~/merb-project $ git commit -m "first commit" | |
ruby-merb@localhost ~/merb-project $ git status | |
# On branch master | |
nothing to commit (working directory clean) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby-merb@localhost ~/merb-project $ nano config/database.yml | |
ruby-merb@localhost ~/merb-project $ cat config/database.yml | |
--- | |
# This is a sample database file for the DataMapper ORM | |
development: &defaults | |
# These are the settings for repository :default | |
adapter: mysql | |
host: localhost | |
username: root | |
password: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby-merb@localhost ~/merb-project $ bin/merb -p 4002 | |
Loading init file from /home/ruby-merb/merb-project/config/init.rb | |
Loading /home/ruby-merb/merb-project/config/environments/development.rb | |
~ Connecting to database... | |
~ Loaded slice 'MerbAuthSlicePassword' ... | |
~ Parent pid: 14756 | |
~ Compiling routes... | |
~ Activating slice 'MerbAuthSlicePassword' ... | |
merb : worker (port 4002) ~ Starting Mongrel at port 4002 | |
merb : worker (port 4002) ~ Successfully bound to port 4002 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby-merb@localhost ~/merb-project $ rm merb.thor | |
ruby-merb@localhost ~/merb-project $ thor merb:gem:install | |
Beginning transaction | |
Installing haml-2.0.6 | |
Installing merb-haml-1.0.7.1 | |
Installing do_mysql-0.9.10.1 | |
Building native extensions. This could take a while... | |
Installing dm-serializer-0.9.9 | |
Installing gem_plugin-0.2.3 | |
Installing daemons-1.0.10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby-merb@localhost ~/merb-project $ nano config/dependencies.rb | |
ruby-merb@localhost ~/merb-project $ cat config/dependencies.rb | |
# dependencies are generated using a strict version, don't forget to edit the dependency versions when upgrading. | |
merb_gems_version = "1.0.8.1" | |
dm_gems_version = "0.9.10" | |
do_dems_version = "0.9.11" | |
# For more information about each component, please read http://wiki.merbivore.com/faqs/merb_components | |
dependency "merb-action-args", merb_gems_version | |
dependency "merb-assets", merb_gems_version |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby-merb@localhost ~/merb-project $ bin/merb-gen app --template-engine=haml . | |
Generating with app generator: | |
[IDENTICAL] gems | |
[ADDED] .gitignore | |
[ADDED] public/.htaccess | |
[ADDED] tasks/doc.thor | |
[ADDED] public/javascripts/jquery.js | |
[ADDED] doc/rdoc/generators/template/merb/index.html.erb | |
[ADDED] doc/rdoc/generators/template/merb/merb_doc_styles.css | |
[ADDED] doc/rdoc/generators/template/merb/merb.rb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby-merb@localhost ~/merb-project $ thor merb:gem:install merb-gen | |
Installing 1 gem... | |
This may take a while... | |
Installing merb-gen... | |
Writing executable wrapper /home/ruby-merb/merb-project/bin/ldiff | |
Writing executable wrapper /home/ruby-merb/merb-project/bin/htmldiff | |
Writing executable wrapper /home/ruby-merb/merb-project/bin/merb-gen | |
Successfully installed highline-1.5.0 | |
Successfully installed diff-lcs-1.1.2 | |
Successfully installed templater-0.5.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby-merb@localhost ~/merb-project $ thor merb:stack:install | |
Writing executable wrapper /home/ruby-merb/merb-project/bin/erubis | |
Writing executable wrapper /home/ruby-merb/merb-project/bin/rake | |
Writing executable wrapper /home/ruby-merb/merb-project/bin/edit_json.rb | |
Writing executable wrapper /home/ruby-merb/merb-project/bin/autospec | |
Writing executable wrapper /home/ruby-merb/merb-project/bin/spec | |
Writing executable wrapper /home/ruby-merb/merb-project/bin/rackup | |
Writing executable wrapper /home/ruby-merb/merb-project/bin/thor | |
Writing executable wrapper /home/ruby-merb/merb-project/bin/rake2thor | |
Writing executable wrapper /home/ruby-merb/merb-project/bin/merb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby-merb@localhost ~/_source $ cd .. | |
ruby-merb@localhost ~ $ export PATH=/home/ruby-merb/ruby/1.8.6-p287/bin:$PATH | |
ruby-merb@localhost ~ $ export RUBYLIB=/home/ruby-merb/ruby/1.8.6-p287/lib | |
ruby-merb@localhost ~ $ gem list | |
*** LOCAL GEMS *** | |
thor (0.9.9) | |
ruby-merb@localhost ~ $ mkdir merb-project | |
ruby-merb@localhost ~ $ cd merb-project |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby-merb@localhost ~ $ cd _source/ | |
ruby-merb@localhost ~/_source $ ls -l | |
total 4140 | |
-rwxr-xr-x 1 ruby-merb ruby-merb 401 Jan 7 11:40 install_ruby | |
-rw-r--r-- 1 ruby-merb ruby-merb 3956902 Jan 7 11:36 ruby-1.8.6-p287.tar.bz2 | |
-rw-r--r-- 1 ruby-merb ruby-merb 263748 Jan 7 11:37 rubygems-1.3.1.tgz | |
ruby-merb@localhost ~/_source $ cat install_ruby | |
export PATH=/home/ruby-merb/ruby/1.8.6-p287/bin:$PATH | |
export RUBYLIB=/home/ruby-merb/ruby/1.8.6-p287/lib | |
rm -Rf ~/ruby |