similar to: database.yml and Dreamhost

Displaying 20 results from an estimated 200 matches similar to: "database.yml and Dreamhost"

2006 Mar 31
14
[newbi] Create a Model
Hello All, Yesterday i put RoR with Locomotive. I am very happy :p. So I follow this tuto (http://developer.apple.com/tools/rubyonrails.html). I used Sqlite. my database.yml # MySQL (default setup). Versions 4.1 and 5.0 are recommended. # # Get the fast C bindings: # gem install mysql # (on OS X: gem install mysql -- --include=/usr/local/lib) # And be sure to use new-style password
2006 Apr 30
3
MySQL connection problems on Dreamhost
To all fellow Dreamhosters out there... Sometimes my app mysteriously loses its connection to the database, resulting in a big ugly "Application Error (Rails)" page. Usually refreshing the page makes it go away, but not today. :-( In production.log I see this: MysqlError (Lost connection to MySQL server during query): Any idea why this happens? It''s rather intermittent
2006 Oct 16
3
backgroundrb.yml not generated
I''m trying to do the tutorial at http://www.infoq.com/articles/BackgrounDRb. A little more than half-way through it says "Upon instalation, the plugin writes a config file into RAILS_ROOT/config/backgroundrb.yml." It didn''t happen for me. I installed the plugin with: ruby script\plugin install svn:\\rubyforge.org//var/svn/backgroundrb It added a bunch of files,
2006 Jul 25
1
mysql cluster database.yml setup
im trying to deploy my app on our staging server and am running into an issue. we have a MySQL NDB cluster for the staging box. this basically means that the staging box should be able to use MySQL via localhost and it will automatically know it''s in a cluster. When running queries, it will go out to the real DB boxes instead of localhost to fetch the data. AFAIK, the clustering setup
2006 May 19
1
database.yml and encoding: utf8 -> mysql error
I have Rails 1.1, MySql 5.0 and would like to stor text as utf8 in the db. I have changed the character set and collation in the db to utf8 and utf8_danish_ci - also checked the mysql to if its ok: show collations like "%danish%"; utf8_danish_ci utf8 203 Yes 8 I then add the following environment.rb: $KCODE = ''u'' require ''jcode'' och database.yml
2006 Apr 26
3
problem with database.yml moving from 0.13.0 to 0.14.4
Hi, I''m upgrading from 0.13.0 to 0.14.4, and I''m having trouble with my database authentication. Even though the entries in my database.yml are correct, I get the following message when trying to do a ruby script/generate scaffold myClass... Access denied for user: ''@localhost to database '''' Why is the username and database name showing up as
2006 Apr 28
0
error with database.yml when running rails generate script
Hi All, I''m learn about ruby and rails in the same time. I got error when running rails generate script when trying to create application with db When I execute "ruby script/generate scaffold Product Admin" It give me error like this "/usr/local/lib/ruby/1.8/yaml.rb:133:in `load'': syntax error on line 33, col 8: ` #host: localhost'' (ArgumentError)
2006 Mar 05
1
encoding: utf8 in database.yml causes error
Hi Using ruby 1.8, rails 1.0, mysql 4.1.11 in database.yml: adapter: mysql encoding: utf8 database: myproject_development username: user password: password socket: /var/run/mysqld/mysqld.sock but when I start the error I get: Can''t initialize character set utf8 (path: /usr/share/libmysqlclient/charsets/) Can anyone tell me what file it''s looking for, and how I
2008 Apr 02
1
Specifying environment in backgroundrb.yml
It seems that regardless of what environment I specify in my backgroundrb.yml file, it always uses development mode unless I pass "-e production" to the "script/backgroundrb start" command. >From looking at bdrb_config.rb, it looks like immediately after loading the config file it assigns whatever was passed on the command line (which defaults to development if nothing is
2008 May 28
2
version yml file
Hi, I am trying to get the scheduling to work with my RoR application. How do I determine what version of backgroundrb I have configured? When I try to invoke??? rake backgroundrb:setup? , it fails. Thanks for the help. Linda
2006 Feb 21
0
How do you order fixtures within each yml file?
Hi. I''ve come across the following documentation: Note that YAML fixtures are unordered. If you want ordered fixtures, use the omap YAML type. See yaml.org/type/omap.html for the specification. You will need ordered fixtures when you have foreign key constraints on keys in the same table. This is commonly needed for tree structures. Example: --- !omap - parent: id:
2006 Jan 11
1
access value set in config/database.yml
Hi all I trying to access from my controller the host, database, user, password that being set in database.yml in the config directory. Anyone has any idea?
2005 Dec 22
1
[NEWB] How to access database.yml parameters in a controller
Hi, Are the active database.yaml attributes for the current environment (dev, prod, test) available inside a controler ? adapter, host, db, socks, etc. AFIK Class#connection don''t give back theses infos. Thanks
2010 Jan 30
1
RoR & YML
In ruby\lib\ruby\gems\1.8\gems\actionpack-2.3.5\lib\action_view\locale\en.yml I see activerecord: errors: template: header: one: "1 error prohibited this {{model}} from being saved" other: "{{count}} errors prohibited this {{model}} from being saved" # The variable :count is also available Where does "model" come
2006 Oct 18
0
database.yml, postgresql and pgpass.conf conflicts
Hi, I noticed that, on Windows at least, if I have a password set in the database.yml file for a database that I also have in my pgpass.conf file, the Rails adapter will die with a password authentication error. I don''t seem to have this issue on Unix systems. It''s simple enough to solve - just comment out the password info in the database.yml file. I just wondered if there
2006 Dec 24
1
How to get database.yml configuration to use it in a rake taks
Hello, I want to get the production environment configuration from the database.yml in the /shared folder of a deployed rails application. I could use scp to get the file, write it to temporary file, read it and open it with YAML, but is there a better way to do this? Best regards, -- AnĂ­bal Rojas http://www.rubycorner.com http://www.hasmanydevelopers.com
2008 Apr 03
0
Importing (bootstrapping) the initial data from fixtures(.yml) with foreign keys in Rails 2.0
Hi, I''m trying to import data from YAML files in Rails 2.0.2. I learned that new features came out for fixtures at RailsCasts http://railscasts.com/episodes/81 . And, in Rails 1.2.6 and before, I used a "rake" task I found online. Looks like there are many variations for this "bootstrap" file. Do you know if there''s a file available that does something
2012 Apr 20
0
How to configure morethan one solr cores in sunspot.yml in same environment
Hi am using rails 2.x and outoftime-sunspot gems I want to use morethan one solr cores and using sunspot in my application How to configure morethan one cores in sunspot.yml let''s assume Model1 using core1 Model2 using core2 How to configure them in my application -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups
2006 Sep 06
1
Need to override database.yml settings for Capistrano run
All, Database: SQL Server 2000 SQLServer adapter in ODBC mode I have a Capistrano deploy script which fails when I run against my production DB. Apparently, this is the because the user that is set up for production has "guest" privileges in my SQL Server database and when Capistrano runs, instead of looking at the dbo.schema_info table (which has the correct version # - yes I
2008 May 05
0
Changing ActiveRecord serialize format to XML instead of YML
Hello, So far, ActiveRecord serialize is working great for me to save arbitrary data. I would like to know if there is a way to change the format of ActiveRecord serialize to XML instead of YML. I like the readability of YML, but I need to search serialized fields in the database. So, it would make sense to use XML because most database vendors supports XML value extraction, e.g,. ExtractValue