sample config file
authorSam Saffron <sam.saffron@gmail.com>
Wed, 30 Oct 2013 06:19:31 +0000 (23:19 -0700)
committerSam Saffron <sam.saffron@gmail.com>
Wed, 30 Oct 2013 06:19:31 +0000 (23:19 -0700)
shared/config/web1/conf.yml [deleted file]
shared/config/web1/conf.yml.sample [new file with mode: 0644]

diff --git a/shared/config/web1/conf.yml b/shared/config/web1/conf.yml
deleted file mode 100644 (file)
index 14f34a2..0000000
+++ /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 (file)
index 0000000..f8c20dd
--- /dev/null
@@ -0,0 +1,42 @@
+roles:
+  - unicorn
+  - nginx
+  - sidekiq
+  - sshd
+
+database:
+  bootstrap:
+    - "CREATE DATABASE discourse"
+    - "CREATE USER discourse"
+sshd:
+  id_rsa: <YOUR SSH KEY>
+
+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