Skip to content

pkristoff/confirmation

Repository files navigation

Confirmation

v0.1 Features:

  • devise implementation for candidate & admin
  • Home page
  • About page
  • Admin:
    • login
    • creation
    • reset password
    • edit account
    • cancel account
    • list of Admins
  • Candidate:
    • login
    • creation
    • reset password
    • edit account
    • cancel account

================

Confirmation github

Deploy to Heroku

Deploying:

This application was generated with the rails_apps_composer gem provided by the RailsApps Project.

Rails Composer is supported by developers who purchase our RailsApps tutorials.

Documentation:

Create a file in config named local_env.yml

  • EMAIL_PROVIDER_ADDRESS: ''
  • EMAIL_PROVIDER_USERNAME: ''
  • EMAIL_PROVIDER_PASSWORD: '' Problems? Issues?

Need help? Ask on Stack Overflow with the tag 'railsapps.'

Your application contains diagnostics in the README file. Please provide a copy of the README file when reporting any issues.

If the application doesn't work as expected, please report an issue and include the diagnostics.

Ruby on Rails

This application requires:

Postgres Production

https://dashboard.heroku.com/apps

Copy production db to staging

Copy production(confirmation-production) db to staging(confirmation-staging)

  • heroku pg:copy confirmation-production::DATABASE_URL DATABASE_URL -a confirmation-staging
  • heroku pg:copy stmichael-confirmation-prod::DATABASE_URL DATABASE_URL -a stmichael-confirmation-staging

Production => local

  • heroku pg:backups:download --app confirmation-production
  • pg_restore --verbose --clean --no-acl --no-owner -h localhost -U paulkristoff -d confirmation_development latest.dump > restore.log

PSQL

Restore dump to Production:

Postgres local

Install postgres

  • Login as administrator
  • bring up terminal
  • brew update
  • if postgres is installed
    • brew uninstall postgres
    • remove rm -r /usr/local/postgres
  • brew install postgres
    • if brew postgres post install did not work then do
      • ls -al /usr/local/var/
      • if /usr/local/var/postgres is owned by root then
        • sudo chown -R $(whoami) /usr/local/var/postgres
      • brew postinstall postgres
      • if still having problems with permissions then
        • sudo chmod -R 700 /usr/local/var/postgres
    • try: psql postgres - should take you into postgres console.
      • if not reboot
    • create role for current login
      • CREATE ROLE paulkristoff LOGIN SUPERUSER CREATEROLE CREATEDB REPLICATION BYPASSRLS;

Devise emails

  • views/devise/mailer/*.html.erb

Upgrade local DB

  • su - administrator
    • brew upgrade postgresql
    • brew postgresql-upgrade-database

Start DB

  • login as paulkristoff
  • open terminal
  • su - administrator
  • show-pg-status
    • if running do nothing
    • if not do start-pg

Creating DBs.

  • open terminal
  • cd dev/confirmation
  • rake db:setup

delete candidate by hand:

  • delete from candidates where id=854;
  • delete from baptismal_certificates where id= 2341;
  • delete from addresses where id=5423;
  • delete from sponsor_covenants where id= 2206;
  • delete from pick_confirmation_names where id=2158;
  • delete from christian_ministries where id= 21269;
  • delete from candidate_sheets where id= 1788;
  • delete from addresses where id=5422;
  • delete from retreat_verifications where id= 2140;

SendGrid

Year End

  • get copy of db
    • heroku pg:backups:download --app confirmation-production
    • mv latest.dump ~/Dropbox/Confirmation/2018-05/year-end/V1.0.18-ye.2017-18.dump
  • tag code ex: V1.0.18-ye.2017-18

Time consuming bugs

Other Links

Getting Started

Documentation and Support

Issues

Similar Projects

Contributing

Credits

License