Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 838 Bytes

README.md

File metadata and controls

39 lines (27 loc) · 838 Bytes

pghumor Demo

Demo of tweets detected as humorous by the project pghumor

Set up the database

Create the file config/secrets.yml with the content (replacing with the password of the user of the used database):

development:
  password: --PASSWORD--
  secret_key_base: --SECRET_KEY_BASE--

test:
  password: --PASSWORD--
  secret_key_base: --SECRET_KEY_BASE--

production:
  password: <%= ENV["PASSWORD"] %>
  secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>

To generate the values of secret_key_base in development and test, run:

bundle exec rake secret

Grant access to pghumor to the database:

GRANT ALL PRIVILEGES ON prueba_concepto_development.* TO 'pghumor'@'%' WITH GRANT OPTION;

Catch changes while running the server

bundle exec rerun "bundle exec rails server"