This is the home of the Ruby for Good project to redo the old site for the Humane Society of Fairfax County.
Issue tracking can be found here.
bundle install
rake db:create rake db:migrate
pg_restore db/hsfc_rubyforgood.dump
cp .env-sample .env
Look for Petfinder credentials in Slack channel and add to .env file.
After booting up the server with rails s
navigate to localhost:3000/cms-admin/login
username: admin@cmsfortress.com
password: 1234qwer
or if that doesn't work you may need to use:
username: admin@rubyforgood.com
password: password
Once you have logged in you will need to delete the default site and creating a new site called localhost. You can find the page to make these changes by clicking settings button in the top navbar.
With a new localhost site created you can bootstrap it with fixture files with the following command.
rake comfortable_mexican_sofa:fixtures:import FROM=example.local TO=localhost
To load the production questions and other seeds, etc, into your database, run:
rake db:submission_data_load
(To delete data from the application tables, run: rake db:submission_data_destroy)
When you login for the first time, create a site called 'localhost' before attempting the import.
After pulling latest changes from the remote you need to import the fixture files into your local db.
rake comfortable_mexican_sofa:fixtures:import FROM=example.local TO=localhost
When you want to push your changes up to Github and PR in order for others to see and use your changes export.
rake comfortable_mexican_sofa:fixtures:export FROM=localhost TO=example.local
Upload new photos via the Admin portal. The carousel will cycle through any images with the category 'slides'.
Branch off of master:
git checkout -b <name of your feature branch>
Make changes, commit, then push your changes.
rake db:dump
git push
Submit PR into master.