From: Sam Saffron Date: Wed, 30 Oct 2013 06:19:31 +0000 (-0700) Subject: sample config file X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=73c35e519d3b7610844ad1146e2c2cd5ef98aa24;p=discourse_docker.git sample config file --- diff --git a/shared/config/web1/conf.yml b/shared/config/web1/conf.yml deleted file mode 100644 index 14f34a2..0000000 --- a/shared/config/web1/conf.yml +++ /dev/null @@ -1,24 +0,0 @@ -roles: - - unicorn - - nginx - - sidekiq - -databases: - production: - name: play - username: discourse - password: password - host: l.discourse - host_names: - - dev1.discourse.org - -env: - DEVELOPER_EMAIL: 'sam.saffron@gmail.com' - DISCOURSE_HOSTNAME: 'dev.samsaffron.com' - REDIS_PROVIDER_URL: 'redis://l.discourse:6379' - RAILS_ENV: 'production' - RAILS4: 1 - -version: latest - - diff --git a/shared/config/web1/conf.yml.sample b/shared/config/web1/conf.yml.sample new file mode 100644 index 0000000..f8c20dd --- /dev/null +++ b/shared/config/web1/conf.yml.sample @@ -0,0 +1,42 @@ +roles: + - unicorn + - nginx + - sidekiq + - sshd + +database: + bootstrap: + - "CREATE DATABASE discourse" + - "CREATE USER discourse" +sshd: + id_rsa: + +app: + root: "/var/www/discourse" + version: latest + bootstrap: + - "cp config/database.yml.production-sample config/database.yml" + - "cp config/redis.yml.sample config/redis.yml" + - "cp config/environments/production.rb.sample config/environments/production.rb" + - "mkdir -p tmp/pids" + - "mkdir -p tmp/sockets" + - "mkdir -p log" + database.yml: + production: + database: play + username: discourse + password: password + host: l.discourse + host_names: + - dev1.discourse.org + +unicorn: + args: "config/unicorn.sample.conf.rb" + +env: + DEVELOPER_EMAIL: 'sam.saffron@gmail.com' + DISCOURSE_HOSTNAME: 'dev.samsaffron.com' + REDIS_PROVIDER_URL: 'redis://l.discourse:6379' + RAILS_ENV: 'production' + RAILS4: 1 + UNICORN_WORKERS: 3