I have just setup the ROR environment on a vps, but once i created the
app and run rails s or db:create after modifying the database.yml it
keeps on appearing with the “Could not find gem sqlite3” etc message
which i know this as it’s not install as i am using mysql. What else
have i got to do other than modifying the database.yml as to me it’s
still looking for the sqlite3 to use.
I have just setup the ROR environment on a vps, but once i created the
app and run rails s or db:create after modifying the database.yml it
keeps on appearing with the “Could not find gem sqlite3” etc message
which i know this as it’s not install as i am using mysql. What else
have i got to do other than modifying the database.yml as to me it’s
still looking for the sqlite3 to use.
Did you remember to change it to mysql2 in Gemfile, and to run bundle
install.
If you did then post database.yml, Gemfile and the full error and trace.
I have just setup the ROR environment on a vps, but once i created the
app and run rails s or db:create after modifying the database.yml it
keeps on appearing with the “Could not find gem sqlite3” etc message
which i know this as it’s not install as i am using mysql. What else
have i got to do other than modifying the database.yml as to me it’s
still looking for the sqlite3 to use.
Did you remember to change it to mysql2 in Gemfile, and to run bundle
install.
If you did then post database.yml, Gemfile and the full error and trace.
Its going to be both but once it’s working when i have made the app in
will go from development to production.
I would not advise to do the learning phase in development mode on a VPS
if it is exposed to the Internet. Also, setting up all aspects of the
VPS
(including security) yourself, while learning Rails is not trivial.
Maybe
you are
better helped by a hosting company with good service or running
production
on PaaS providers (like Heroku, Engine Y., etc.).
block in load_tasks' load_tasks’
/usr/bin/rake:31:in `’
timeout: 5000
password:
pool: 5
timeout: 5000
Are these number of spaces exact? The .yml format
needs an exact number of 2 spaces (no tabs) before
the keys like ‘host’, ‘adapter’ etc. It looks like the
number of space before the keys is not exactly 2 ?
Its going to be both but once it’s working when i have made the app in
will go from development to production.
I would not advise to do the learning phase in development mode on a VPS
if it is exposed to the Internet. Also, setting up all aspects of the
VPS
(including security) yourself, while learning Rails is not trivial.
Maybe
you are
better helped by a hosting company with good service or running
production
on PaaS providers (like Heroku, Engine Y., etc.).
block in load_tasks' load_tasks’
/usr/bin/rake:31:in `’
timeout: 5000
password:
pool: 5
timeout: 5000
Are these number of spaces exact? The .yml format
needs an exact number of 2 spaces (no tabs) before
the keys like ‘host’, ‘adapter’ etc. It looks like the
number of space before the keys is not exactly 2 ?
HTH,
Peter
Hi Peter,
No the development won’t be viewable to general users, but i completely
understand your point. I do know my way around linux anyway i have a
security mind as well but it’s just getting the thing setup and then i
can fine tune everything after.
I have got it working after getting the above messages i added the
“require ‘rake/dsl_definition’” before the require ‘rake’ in the rake
file and after a few other error i got it working and as you suggested
the space issue i sorted them and when i db:create it works great.
p.s i did found something before finding to put the require
'rake/dsl_definition ’ that it was because the rake 0.9 broken rails,
but this was not the case as i had a higher version than that.