Google Groups Home
Help | Sign in
Installing the latest Mephisto (and you probably have rails 2.1.0 gem installed)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  15 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
mferrier@gmail.com  
View profile
 More options Jul 8, 12:14 pm
From: "mferr...@gmail.com" <mferr...@gmail.com>
Date: Tue, 8 Jul 2008 09:14:10 -0700 (PDT)
Local: Tues, Jul 8 2008 12:14 pm
Subject: Installing the latest Mephisto (and you probably have rails 2.1.0 gem installed)
Took me a little bit to get Meph up and running, and there weren't
obvious instructions here on the newsgroup, so I'll just list it out
here for any other new users like me.

To be clear, I wanted to clone the latest version of mephisto, then
initialize a new blog in a git repository. Skip the git steps if you
like. Here's what I did:

1) Clone mephisto

mike@mikeulas:~/dev$ git clone git://github.com/technoweenie/mephisto.git
Initialized empty Git repository in /home/mike/dev/mephisto/.git/
remote: Counting objects: 17419, done.
remote: Compressing objects: 100% (4564/4564), done.
remote: Total 17419 (delta 12228), reused 17402 (delta 12211)
Receiving objects: 100% (17419/17419), 3.08 MiB | 283 KiB/s, done.
Resolving deltas: 100% (12228/12228), done.

2) Copy to my new project and git init

mike@mikeulas:~/dev$ cp -R mephisto new_blog
mike@mikeulas:~/dev$ cd new_blog/
mike@mikeulas:~/dev/new_blog$ rm -rf .git
mike@mikeulas:~/dev/new_blog$ git init
Initialized empty Git repository in .git/

3) Setup my database.yml and databases

mike@mikeulas:~/dev/new_blog$ nano -w config/database.example.yml
...editing and saving to config/database.yml...
mike@mikeulas:~/dev/new_blog$ mysqladmin -uroot create
new_blog_development
mike@mikeulas:~/dev/new_blog$ mysqladmin -uroot create new_blog_test
mike@mikeulas:~/dev/new_blog$ mysqladmin -uroot create
new_blog_production

4) Freeze rails to 2.0.2

mike@mikeulas:~/dev/new_blog$ rake rails:freeze:edge RELEASE=2.0.2
(in /home/mike/dev/new_blog)
Downloading Rails from http://dev.rubyonrails.org/archives/rails_2.0.2.zip
Unpacking Rails
Updating current scripts, javascripts, and configuration settings

5) This is the important one: copy the boot.rb from rails2.0.2's
railties to config. The "updating current scripts" doesn't handle
that.

mike@mikeulas:~/dev/new_blog$ cp vendor/rails/railties/environments/
boot.rb config/boot.rb

6) Bootstrap!

mike@mikeulas:~/dev/new_blog$ rake db:bootstrap RAILS_ENV=production
(in /home/mike/dev/new_blog)
-- create_table("assets", {:force=>true})
   -> 0.0724s
-- create_table("assigned_assets", {:force=>true})
   -> 0.0029s
-- create_table("assigned_sections", {:force=>true})
   -> 0.0026s
-- add_index("assigned_sections", ["article_id", "section_id"],
{:name=>"idx_a_sections_article_section"})
   -> 0.0310s
-- create_table("cached_pages", {:force=>true})
   -> 0.0026s
-- create_table("content_versions", {:force=>true})
   -> 0.0315s
-- create_table("contents", {:force=>true})
   -> 0.0150s
-- add_index("contents", ["published_at"],
{:name=>"idx_articles_published"})
   -> 0.0233s
-- add_index("contents", ["article_id", "approved", "type"],
{:name=>"idx_comments"})
   -> 0.0057s
-- create_table("events", {:force=>true})
   -> 0.0049s
-- create_table("feedbacks", {:force=>true})
   -> 0.0032s
-- create_table("memberships", {:force=>true})
   -> 0.0024s
-- create_table("mephisto_plugins", {:force=>true})
   -> 0.0195s
-- create_table("sections", {:force=>true})
   -> 0.0035s
-- create_table("sites", {:force=>true})
   -> 0.0095s
-- add_index("sites", ["host"], {:name=>"index_sites_on_host"})
   -> 0.0051s
-- create_table("taggings", {:force=>true})
   -> 0.0216s
-- create_table("tags", {:force=>true})
   -> 0.0023s
-- create_table("users", {:force=>true})
   -> 0.0040s
-- initialize_schema_information()
   -> 0.0221s
-- columns("schema_info")
   -> 0.0007s
copied default theme to /home/mike/dev/new_blog/themes/site-1...

=========================================================================== =====

Thank you for trying out Mephisto 0.8.0: Drax Edition!

Now you can start the application with script/server, visit
http://mydomain.com/admin, and log in with admin / test.

For help, visit the following:
  Official Mephisto Site - http://mephistoblog.com
  The Mephisto Community Wiki - http://mephisto.stikipad.com/
  The Mephisto Google Group - http://groups.google.com/group/MephistoBlog

8) Boot-er-up

mike@mikeulas:~/dev/new_blog$ thin start -e production

>> Using rails adapter
>> Thin web server (v0.8.2 codename Double Margarita)
>> Threaded mode OFF
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:3000, CTRL+C to stop

You're done.

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mferrier@gmail.com  
View profile
 More options Jul 8, 2:13 pm
From: "mferr...@gmail.com" <mferr...@gmail.com>
Date: Tue, 8 Jul 2008 11:13:56 -0700 (PDT)
Local: Tues, Jul 8 2008 2:13 pm
Subject: Re: Installing the latest Mephisto (and you probably have rails 2.1.0 gem installed)
One more thing!! The .gitignore in mephisto ignores everything in
themes/*, so when you commit after running rake db:bootstrap (which
copies the default theme into themes/), your default theme won't be
committed. Remove the offending line from .gitignore to fix.

On Jul 8, 12:14 pm, "mferr...@gmail.com" <mferr...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Francisco Valladolid  
View profile
 More options Jul 8, 9:32 pm
From: "Francisco Valladolid" <fic...@gmail.com>
Date: Wed, 9 Jul 2008 06:02:14 +0430
Local: Tues, Jul 8 2008 9:32 pm
Subject: Re: [Mephisto] Re: Installing the latest Mephisto (and you probably have rails 2.1.0 gem installed)
Hi Thanks for it.

How can migrate my database from mephisto 0.7.3 to -current (from git)

normally I do.

mephisto % rake db:migrate RAILS_ENV=production

I get it:

rake aborted!
undefined method `[]' for #<Enumerable::Enumerator:0x9984a78>

the --trace option say:

/var/www/blog.bsdguy.net/mephisto-8/vendor/plugins/attachment_fu/lib/techno weenie/attachment_fu.rb:66:in
`has_attachment'
./db/migrate//033_user_hostile_template_migration.rb:8

suggestions, advices, etc.

ficovh

--
Francisco Valladolid H.
 -- http://bsdguy.net - Jesus Christ follower.

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jesselucas  
View profile
 More options Aug 18, 2:06 am
From: jesselucas <jesserlu...@gmail.com>
Date: Sun, 17 Aug 2008 23:06:12 -0700 (PDT)
Local: Mon, Aug 18 2008 2:06 am
Subject: Re: Installing the latest Mephisto (and you probably have rails 2.1.0 gem installed)
I was having some problems with this tutorial. Like many others I kept
getting this error:

rake aborted!
undefined method `initialize_schema_information' for module
`ActiveRecord::ConnectionAdapters::SchemaStatements'

I changed step 4 to rails:freeze:edge TAG=rel_2-0-2 and then continued
the tutorial and everything worked great! .

On Jul 8, 9:32 pm, "Francisco Valladolid" <fic...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Justin Kay  
View profile
 More options Aug 19, 11:32 am
From: Justin Kay <justinb...@gmail.com>
Date: Tue, 19 Aug 2008 09:32:49 -0600
Local: Tues, Aug 19 2008 11:32 am
Subject: Re: [Mephisto] Re: Installing the latest Mephisto (and you probably have rails 2.1.0 gem installed)
I tried freezing like you mentioned, but I still get
/usr/local/rails/mephisto/vendor/rails/activesupport/lib/
active_support/core_ext/module/aliasing.rb:31:in `alias_method':  
undefined method `initialize_schema_information' for module  
`ActiveRecord::ConnectionAdapters::SchemaStatements' (NameError)
        from /usr/local/rails/mephisto/vendor/rails/activesupport/lib/
active_support/core_ext/module/aliasing.rb:31:in `alias_method_chain'

On Aug 18, 2008, at 12:06 AM, jesselucas wrote:

Sites:
http://justinbkay.org
http://mydaddypuzzles.com
http://broncodashboard.com

"I can picture in my mind a world without war, a world without hate. And
I can picture us attacking that world, because they'd never expect it."


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Steve Ross  
View profile
 More options Aug 19, 2:57 pm
From: "Steve Ross" <nowhid...@gmail.com>
Date: Tue, 19 Aug 2008 14:57:20 -0400
Local: Tues, Aug 19 2008 2:57 pm
Subject: Re: [Mephisto] Re: Installing the latest Mephisto (and you probably have rails 2.1.0 gem installed)

When you freeze rails do you see a long output of files (like a svn
checkout)? If not it is the same problem I had with rails 2.1 when freezing
was failing. Had to roll back to 2.0.2 and then freeze rails.

--
Steve Ross
web application & interface developer
http://blog.stevensross.com
[mobile] 404-488-4364 [fax] (404) 592-6885
[ AIM / Yahoo! : zeriumsteven ] [googleTalk : nowhiding ]

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.