-
Notifications
You must be signed in to change notification settings - Fork 28
Conversation
I'm in the happy position to have an SQL dump from @moonbeamlabs - but I'd appreciate solid seeds - so I'm gonna look into this. :) |
@bitboxer if you're onto some hacken.in hacking tomorrow, it'd be great if you could take a look at this. I'm far away from being a rails-newbie, so this is just the result of me doing Some things are still beyond me:
So – long story short – I'd love to get some feedback. :) |
dammit, waffle.io! 🎯 |
Two questions: What are the passwords of the users? I think it would be more clear if it doesn't use the encrypted passwords to create them. Use unencrypted in the seed would make this more readable. Where are the images coming from? Mayby they should be downloaded from placekitten during seeding? |
Good point. About the images: Downloading place-kittens only for bootstrapping the app is a bit over-the-top, imho. Would it be okay to supply three demo images in the fixtures folder and copy them over to the uploads-folder with the |
it would be totally okay to put the files in there. The final thing that is missing would be the radar stuff. I will take over after you finished the images. Thanks! |
All three images are licensed under CC and taken from: * https://www.flickr.com/photos/sicarr/4277922732 * https://www.flickr.com/photos/mathias-erhart/2562106102 * https://www.flickr.com/photos/donnagrayson/1539610421 I added attribution to the images - so I hope we're on the safe side.
@bitboxer Done with 4374508 – so you can take over from here. I tested the file fixtures with my local VM and carrierwave picked up the files & resized them correctly (MAGIC!):
|
All three images are licensed under CC and taken from: * https://www.flickr.com/photos/sicarr/4277922732 * https://www.flickr.com/photos/mathias-erhart/2562106102 * https://www.flickr.com/photos/donnagrayson/1539610421 I added attribution to the images - so I hope we're on the safe side.
@moonglum can you look at this when your system is setup? That would be the ideal time to run this and check if the seed is working for you 😉 |
I will try this together with the Vagrant thing! |
@moonglum as soon as you found time to check this, feel free to merge after it worked for you 😉 |
@moonglum any news on this? |
What's the best practice of running unit tests when my app is running inside of the VM? Should I just boot up |
All three images are licensed under CC and taken from: * https://www.flickr.com/photos/sicarr/4277922732 * https://www.flickr.com/photos/mathias-erhart/2562106102 * https://www.flickr.com/photos/donnagrayson/1539610421 I added attribution to the images - so I hope we're on the safe side.
..since the migration also create some regions, we need to change the seed creation a little bit for it
Rebased. |
Thanks, @bascht – step by step setting up hacken.in becomes easy (both locally and on the server) 👍 |
@moonglum up to you. The VM has both memcache and postgres tunneled to your computer, so you could also run the unit tests from your machine. :) |
Ok, if I cd /vagrant
bundle exec rake I will get the following error:
If I run it locally (with Vagrant running):
I use the |
For development it would be great to have a database seed