Skip to content

Growing the next generation of farmers and food lovers in Canada!

Notifications You must be signed in to change notification settings

Ecotrust-Canada/youngagrarians

 
 

Repository files navigation

youngagrarians

Growing the next generation of farmers

Install

  • Mount a volume at config/secrets with devise_token & secure_token files ( generate with your preferred random token generator or rake secret > file_name)
cp docker-compose.override.yml.template docker-compose.override.yml

Modify the docker-compose override environment setting to "production" if desired. You may want to restore a database clone with psql -f <file> inside the container. to the postgres container.

docker-compose up

If you need to apply DB migrations:

docker exec -it youngagrarians_app_1 rake db:migrate

If you need to update static files:

docker exec -it youngagrarians_app_1 rake assets:precompile

Heroku Repo

Note the pg is not used as the db, cleardb powered mysql is. Access via mysql client and details from heroku config. echo "SET standard_conforming_strings = 'off';\nSET backslash_quote = 'on';\n" > tmp/db_dump.sql mysqldump -h us-cdbr-east-04.cleardb.com -u USEr -p DB --compatible=postgresql >> tmp/db_dump.sql Note that id columns need to be turned into serial columns and tinyints into booleans

Admin Panel

You'll want to get into the admin area; easiest way is from a rails console:

rails c
x = User.first && x.password = 'cl4rkrul3s' && x.save!
puts x.email
exit

then login via /admin/login with those details.

Using Docker:

docker exec -it youngagrarians_app_1 rails c
x = User.first
x.password = "YOUR PASSWORD"
x.email = "YOUR EMAIL"
x.save!
exit

then login via /admin/login using the email/password credentials used above.

About

Growing the next generation of farmers and food lovers in Canada!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 45.6%
  • HTML 25.0%
  • CSS 15.7%
  • CoffeeScript 8.0%
  • JavaScript 4.4%
  • Nginx 0.5%
  • Other 0.8%