Open giovannigarifo opened 4 years ago
Hey,
try to use this
development: &default
adapter: postgresql
encoding: utf8
host: postgres
database: postgres
pool: 5
username: postgres
password: postgres
in the db config.
You may be interested in this fork https://github.com/peter-hank/webuddy. Is has more stuff included and runs on Rails 6.
Thank you, I confirm that editing the config/database.yml file with the above mentioned configuration the application starts without issues.
However, I'm not able to get the verification mail for a new account, is it normal for a local deploy?
@giovannigarifo
Do you have a local smtp server running? See here https://github.com/berkmancenter/threads/blob/master/config/environments/development.rb#L59.
If you don't try https://mailcatcher.me/.
I tried again to install threads following the steps above, but this time, when I try to create a user, I've got the following error:
ActionController::InvalidAuthenticityToken in Users::RegistrationsController#create
I've tried to deploy the application using the development instructions for docker in the README.md, however, I was not able to successfully run it. It seems like the application is unable to connect to the database.
Environment
Steps to reproduce
git clone https://github.com/berkmancenter/threads.git && cd threads
cp .env.example .env
cp config/database.yml.sample config/database.yml
, this was not listed in the deployment guide, but without it the containers won't runcp config/cable.yml.sample config/cable.yml
, this was not listed in the deployment guide, but without it the containers won't rundocker-compose up
docker-compose exec website sh
bundle exec rake db:create
this last command gives the following error: