Hi everyone,
Heroku is really great. So good that I was able to upload and get my
application working, though I'm very, very inexperienced. Bravo.
I've got a problem that escapes me -- when I reinstalled the app
(tarballed upload) my login _within_the_app (SessionsController) won't
let me log
The database on the Heroku side is not the same as what you use on your
local development, regardless of whether or not your sqlite database is
checked in or not (it probably shouldn't be). Heroku uses a Postgres
database, which will, by definition, be separate and different than your
local
Thanks very much. I confirmed that you are right by getting rid of
the login -- the database is indeed empty of my document content. I
presume that to get local and Heroku to work alike I need to use
Postgres locally? And then git from one to the other? Is there a
simpler way of getting
You can add records to your database through the heroku console, as
you would locally.
On Jan 8, 2:50 pm, HazardJ james.g.haz...@gmail.com wrote:
Thanks very much. I confirmed that you are right by getting rid of
the login -- the database is indeed empty of my document content. I
presume
Hi
If you put those methods into your model, the rails console acts as
your admin interface. There you can create some logins.
You can also use migrations to create those users for you. It would be
the same code, just one would be run manually and the other
automatically.
Dave Thomas
Thanks for all the responses!
I'm working from within a world of code I don't understand well.
After an extremely rich learning experience, I discovered that I could seed
the user database from the console with:
User.new(:login = 'admin', :email = 'admin', :password = 'mypswd',
James,
My suggestion is to run sqlite locally.
Only if you are using a lot of raw SQL would I suggest postgress
locally.
I can see why someone would suggest the opposite. But why not just
focus on rails for now? Once it becomes a big time app, then worry
about the version of the
Hi Keenan,
My thought about Postgres was because I am trying to have the same data
locally as at Heroku. Heroku uses Postgres, I thought I needed to match
it. Now I understand that it is possible to synchonize using yaml_db to
export sqlite data to a data.yml, then upload it to Heroku, though I