bookio / server-old

2 stars 0 forks source link

The database is empty #9

Open joakimbengtson opened 10 years ago

joakimbengtson commented 10 years ago

Someone seems to have emptied the database. Any local copies? I had a sample database there for screen shots and testing.

But no biggie, I can build it again in 20 minutes... ;)

mounte commented 10 years ago

I just copied the icons for my local development unfortunatly. Even more important now to get database for development, test and prod.

magnus-engstrom commented 10 years ago

Ops. I would like to play the "new guy" card on this one.

I don't recall doing any database operations in development, but since I'm probably the last person to clone and set up the repo, and doing database operations when setting up the test environment I guess I'm prime suspect.

Very sorry if this is causing you to redo work @joakimbengtson. Give me a shout if there is anything I can do to assist.

Since there will always be a risk of someone doing faulty database operations in development I would prefer if we could change this so that development is strictly local. But then again, I'm new to the project and have no backstory.

meg768 commented 10 years ago

How can this be done?

This is what I have been doing up to now: When debugging, I use a local rails server and change the base URL on the client side (in gopher.js) to

Gopher.baseURL = 'http://localhost:3000';

After committing the changes, I do a "git push heroku master", change the base URL back to:

Gopher.baseURL = 'http://bookio.herokuapp.com';

And then continue to work on the client side. But there is always just one database and it is located on the Amazon servers. I have not yet used the development/production features in rails.

Since my rails-skills are minimal (at the least) does someone have a suggestion of how to manage development and production databases?

meg768 commented 10 years ago

BTW: Personally, I would think it would be nice if we all share the same development database. This would give us the same debugging conditions...

joakimbengtson commented 10 years ago

This is touching the discussion in https://github.com/bookio/client/issues/5 ???