Welcome Guest | Login

Mephisto 0.8 from git - noob 1st deployment

I am reading every thing I can find, but somewhat lost...

Looks like all of rails is goint to git.  I have it installed on my windows box and I am starting to understand it.

Is git installed for the hosted environments?

I am willing to read and try.. so Point me to the doc and I will read it..

I have created a subdomain blog.xyz.com  and I see a public/blog subdirectory.. Is that where the rails code goes ?

I understand the yaml requirements.

I also think I understand I will have to modify .htaccess which control apache correct?  Where would I do that?

2008-06-15 09:54 PM

Hi,

git is installed on your server. To download the edge version mephisto from it's git repo, you could execute the command below from your home directory.

git-clone git://github.com/technoweenie/mephisto.git

You'll see a mephisto folder created which your app. Now you can delete the documentroot directory of your subdomain and create a sumbolic link going to /home/user/mehisto/public. Our mephisto deployment tutorial below would be helpful with it.

  http://www.hostingrails.com/forums/wiki_thread/29

2008-06-16 01:29 AM

Ok,

After a long layoff I am back to this again.

I did the git.
created the symbolic link for the blog

How do I specify where the database is:  this is what I have now:

production:
adapter: mysql
database: mephisto_production
username: xxxxxxx
password: zzzzzzz
host: localhost
encoding: utf8
I have this in environment.rb

RAILS_GEM_VERSION = '2.0.2' unless defined? RAILS_GEM_VERSION
# Uncomment below to force Rails into production mode when
# you don't control web/app server and can't set it the proper way
ENV['RAILS_ENV'] ||= 'production'

From what I have read, the git you provided and is documented on the mephisto blog is version 0.8 which requires 2.0.2

I have also frozen to 2.0.2



I am getting this error

myacct@bunyan [~/mephisto]$ rake db:bootstrap RAILS_ENV=production
(in /home/myacct/mephisto)
rake aborted!
undefined method `initialize_schema_information' for module `ActiveRecord::ConnectionAdapters::SchemaStatements'

(See full trace by running task with --trace)
myacct@bunyan [~/mephisto]$
myacct@bunyan [~/mephisto]$ rake db:migrate
(in /home/myacct/mephisto)
rake aborted!
undefined method `initialize_schema_information' for module `ActiveRecord::ConnectionAdapters::SchemaStatements'

(See full trace by running task with --trace)
myacct@bunyan [~/mephisto]$
From what I have read the problem may be the db is not getting created.

Thanks.. I have hit a dead end.  Sorry but I have limited knowledge.  This is a great learning experience for my, so I hope you can help.

Also is there a better tool for accessing the mysql db remotely ?  The myAdmin tool is very slow.

2008-07-05 12:38 PM

Hi Bartee,

I have now unfrozen you application from rails 2.0.2 since rails 2.0.2 is already installed on the server so you only need to specify the rails version in the config/environment.rb file.

===
RAILS_GEM_VERSION = '2.0.2' unless defined? RAILS_GEM_VERSION
===

The entries in the database.yml file was incorrect. Please note that the database and username created from the cPanel will have a format of accountname_databasename &  accountname_username. I have now made the required changes in your config/database.yml according to your cPanel. Now the command "rake db:bootstrap RAILS_ENV=production" has been executed successfully.

>>Also is there a better tool for accessing the >mysql db remotely ?  The myAdmin tool is very >slow.

We always recommend phpmyadmin for our customers to access their database. You are free to use any third party softwares for your remote access of your database eg:- "cocoamysql". But do note that we don't be able to provide significant support on these third party softwares.

Let us know if you need any further assistance.

2008-07-05 03:05 PM

Ok.

I had the symblolic link wrong and got that fixed.

I have updated .htaccesss with the fcgi.

but blog.enterpriseenergy.com just gets a list of files and  blog.enterpriseenergy.com/admin gets a not found.

blog.enterpriseenergy.com/install.html does work which validates the symbolic link.

I understand these may be errors that I need to go to the google groups for mephisto.  So just let me know.

If I can get all of this correct. I will be happy to update the Hosting Rails wiki for Mephisto.  I have kept detail notes.

2008-07-05 08:54 PM

Hi Bartee,

Your Mephisto application is working fine now. The .htaccess file was missing from your application ~/mephisto. I have now added a new .htaccess file and started your application on Fastcgi. Please verify it from your end.

2008-07-05 09:34 PM

Ok.. I sorta have Mehpisto running.

I am looking at the production logs and googling for possible solutions.  ( see #2 below )

questions..

1.  Do I have to do anything to start my application on Fastcgi ?  

2.  I am getting an error from mephisto and I trying to changes some settings in config/initializers/custom.rb.  Do I need to restart the fcgi app to make the application pick up these changes ?

3.  Can I see the fcgi running ? Is there anything I need to do to manage the fcgi.

Thanks for all the help.  I thought  had set the .htaccess file, but I guess I did not.  It seemed to be a hidden file when I worked on it.  Not sure how that works.

( I know  may need to change to mongrel eventually, but for now, that is another story)


Some of

2008-07-06 02:49 PM

Ok I found the answer to #1 and #2 here   http://www.hostingrails.com/forums/wiki_thread/1

So I will try to restart and see if I get any differences.

Thanks

2008-07-06 03:13 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.