Multiple standalone configuration


(Quenten) #1

Hello,
I want to run 2 standalone containers on my server. (I already have one)
Here is what I did:

  1. cd /var/discourse/containers
  2. cp app.yml app2.yml
  3. params:
    db_default_text_search_config: "pg_catalog.english"
    db_name: app2

When bootstrapping I get this error:

I, [2015-12-19T14:19:39.737600 #37] INFO – : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate’
2015-12-19 14:19:46 UTC [18699-1] discourse@discourse FATAL: database “discourse” does not exist
2015-12-19 14:19:47 UTC [18700-1] discourse@discourse FATAL: database “discourse” does not exist
2015-12-19 14:19:49 UTC [18703-1] discourse@discourse FATAL: database “discourse” does not exist
rake aborted!
ActiveRecord::NoDatabaseError: FATAL: database “discourse” does not exist

What am I doing wrong ?