From 73c35e519d3b7610844ad1146e2c2cd5ef98aa24 Mon Sep 17 00:00:00 2001 From: Sam Saffron Date: Tue, 29 Oct 2013 23:19:31 -0700 Subject: [PATCH] sample config file --- shared/config/web1/conf.yml | 24 ----------------- shared/config/web1/conf.yml.sample | 42 ++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 24 deletions(-) delete mode 100644 shared/config/web1/conf.yml create mode 100644 shared/config/web1/conf.yml.sample 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 -- 2.25.1