Demo of tweets detected as humorous by the project pghumor
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;
bundle exec rerun "bundle exec rails server"