Table of Contents
How to Installing Mack on a Joyent Accelerator
I wanted to install Mack 0.8.2 on a Joyent Acclerator v2.1.4. There were some stops and starts but after about an hour I got it done. I'm excited about the possibilities of Mack + Accelerator and look forward to further testing.
Here's a chronicle of my adventure in the hopes it'll help save someone else some time later.
QuickStart
If you don't want to step through the details, this quickstart should get you there logged in as the default user Jill.
sudo gem install mack sudo gem install do_sqlite3 sudo gem install thin make a directory somewhere to test this (ex. /home/jill/web/mackapps) mack first_app cd first_app mackery server open browser http://<server>:3000
Update RubyGems
http://wiki.joyent.com/all-accelerators:kb:rubygems
As of this writing, 1.3.1 is the most recent.
Install Mack
[ ~]$ sudo gem install mack Password: <password> OUTPUT: Successfully installed mack-facets-0.8.2 Successfully installed mack-orm-0.8.2 Successfully installed mack-active_record-0.8.2 Successfully installed mack-asset_packager-0.8.2 Successfully installed mack-caching-0.8.2 Successfully installed mack-data_factory-0.8.2 Successfully installed mack-data_mapper-0.8.2 Successfully installed mack-distributed-0.8.2 Successfully installed mack-encryption-0.8.2 Successfully installed mack-haml-0.8.2 Successfully installed mack-javascript-0.8.2 Successfully installed mack-localization-0.8.2 Successfully installed mack-markaby-0.8.2 Successfully installed mack-notifier-0.8.2 Successfully installed mack-pdf_writer-0.8.2 Successfully installed mack-more-0.8.2 Successfully installed mack-0.8.2 17 gems installed Installing ri documentation for mack-facets-0.8.2... Installing ri documentation for mack-orm-0.8.2... Installing ri documentation for mack-active_record-0.8.2... Installing ri documentation for mack-asset_packager-0.8.2... Installing ri documentation for mack-caching-0.8.2... Installing ri documentation for mack-data_factory-0.8.2... Installing ri documentation for mack-data_mapper-0.8.2... Installing ri documentation for mack-distributed-0.8.2... Installing ri documentation for mack-encryption-0.8.2... Installing ri documentation for mack-haml-0.8.2... Installing ri documentation for mack-javascript-0.8.2... Installing ri documentation for mack-localization-0.8.2... Installing ri documentation for mack-markaby-0.8.2... Installing ri documentation for mack-notifier-0.8.2... Installing ri documentation for mack-pdf_writer-0.8.2... Installing ri documentation for mack-more-0.8.2... Installing ri documentation for mack-0.8.2... Installing RDoc documentation for mack-facets-0.8.2... Installing RDoc documentation for mack-orm-0.8.2... Installing RDoc documentation for mack-active_record-0.8.2... Installing RDoc documentation for mack-asset_packager-0.8.2... Installing RDoc documentation for mack-caching-0.8.2... Installing RDoc documentation for mack-data_factory-0.8.2... Installing RDoc documentation for mack-data_mapper-0.8.2... Installing RDoc documentation for mack-distributed-0.8.2... Installing RDoc documentation for mack-encryption-0.8.2... Installing RDoc documentation for mack-haml-0.8.2... Installing RDoc documentation for mack-javascript-0.8.2... Installing RDoc documentation for mack-localization-0.8.2... Installing RDoc documentation for mack-markaby-0.8.2... Installing RDoc documentation for mack-notifier-0.8.2... Installing RDoc documentation for mack-pdf_writer-0.8.2... Installing RDoc documentation for mack-more-0.8.2... Installing RDoc documentation for mack-0.8.2...
Create Your First App
[jill@fgcXXXXX ~/web/mackapps]$ mack my_first_app Created: my_first_app/vendor/plugins Created: my_first_app/test/helpers/views Wrote: my_first_app/test/helpers/views/application_helper_spec.rb Created: my_first_app/public Wrote: my_first_app/public/500.html Exists: my_first_app/public Wrote: my_first_app/public/favicon.ico Created: my_first_app/config/configatron Wrote: my_first_app/config/configatron/development.rb Created: my_first_app/app/views/default Wrote: my_first_app/app/views/default/index.html.erb Created: my_first_app/app/models Created: my_first_app/lib/tasks Exists: my_first_app/config/configatron Wrote: my_first_app/config/configatron/test.rb Exists: my_first_app/test Wrote: my_first_app/test/spec.opts Created: my_first_app/test/helpers/controllers Wrote: my_first_app/test/helpers/controllers/ default_controller_helper_spec.rb Created: my_first_app/public/stylesheets Wrote: my_first_app/public/stylesheets/scaffold.css Created: my_first_app/app/controllers Wrote: my_first_app/app/controllers/default_controller.rb Created: my_first_app/test/models Exists: my_first_app/test Wrote: my_first_app/test/spec_helper.rb Created: my_first_app/public/javascripts Created: my_first_app/public/images Exists: my_first_app/config Wrote: my_first_app/config/routes.rb Created: my_first_app/app/views/layouts Wrote: my_first_app/app/views/layouts/application.html.erb Exists: my_first_app/public Wrote: my_first_app/public/404.html Exists: my_first_app/config/configatron Wrote: my_first_app/config/configatron/default.rb Exists: my_first_app Wrote: my_first_app/Rakefile Created: my_first_app/db/migrations Created: my_first_app/config/initializers Wrote: my_first_app/config/initializers/portlets.rb Created: my_first_app/app/helpers/controllers Wrote: my_first_app/app/helpers/controllers/ default_controller_helper.rb Exists: my_first_app/config/initializers Wrote: my_first_app/config/initializers/inflections.rb Exists: my_first_app/config/initializers Wrote: my_first_app/config/initializers/gems.rb Exists: my_first_app/config Wrote: my_first_app/config/database.yml Exists: my_first_app/config/configatron Wrote: my_first_app/config/configatron/production.rb Created: my_first_app/app/helpers/views Wrote: my_first_app/app/helpers/views/application_helper.rb Created: my_first_app/test/controllers Wrote: my_first_app/test/controllers/default_controller_spec.rb Exists: my_first_app/config/initializers Wrote: my_first_app/config/initializers/mime_types.rb
Update Thin
[ ~/web/mackapps/first_app]$ sudo gem install thin
Run The Server to Test
cd first_app mackery server open your browser and go to http://<server>:3000
I got an error here the first time about /session/new. but, it
went away after a page refresh.
There is a pre-requisite for ALL of this and that is the latest
version of ruby gems. Make sure you have that or it's not likely that
any of this will work at all. I did my install w/ rubygems 1.3.1.
But, the accelerator came with v1.2.0. So, do that first.
