浏览代码

Changed filename from .env to .env.example

Rishabh Jain 11 年之前
父节点
当前提交
6303e612a3

+ 0 - 1
deployment/.gitignore

@@ -1 +0,0 @@
-.DS_Store

+ 2 - 2
deployment/README.md

@@ -1,3 +1,4 @@
+Make sure you have Vagrant and Virtualbox(Not necessary, if deploying to AWS) installed.
 Install librarian-chef gem
 
     gem install librarian-chef
@@ -7,7 +8,7 @@ And Vagrant plugins
     vagrant plugin install vagrant-aws
     vagrant plugin install vagrant-omnibus
 
-Move to repo directory and run
+Move to `/deployment` and run
 
     librarian-chef install
 
@@ -42,4 +43,3 @@ To terminate ec2 instance:
 Similarly, to destroy VirtualBox VM
 
     vagrant destroy vb
-

+ 42 - 0
deployment/site-cookbooks/huginn_production/files/default/.env.example

@@ -0,0 +1,42 @@
+# ==== Required configuration settings for Huginn ====
+
+# Replace the following with the output from "rake secret"
+APP_SECRET_TOKEN=REPLACE_ME_NOW!
+
+# This is the domain where your Huginn instance will be running.  The default should work
+# for development, but it needs to be changed when you deploy to a production environment.
+#DOMAIN=localhost:3000
+
+# Database Setup
+DATABASE_ADAPTER=mysql2
+DATABASE_ENCODING=utf8
+DATABASE_RECONNECT=true
+DATABASE_NAME=huginn_production
+DATABASE_POOL=5
+DATABASE_USERNAME=root
+DATABASE_PASSWORD=
+#DATABASE_HOST=your-domain-here.com
+#DATABASE_PORT=3306
+#DATABASE_SOCKET=/tmp/mysql.sock
+
+# ==== Additional required production settings ====
+
+# Configure Rails environment.  This should only be needed in production and may cause errors in development.
+RAILS_ENV=production
+
+# Outgoing email settings.  To use Gmail or Google Apps, put your Google Apps domain or gmail.com
+# as the SMTP_DOMAIN and your Gmail username and password as the SMTP_USER_NAME and SMTP_PASSWORD.
+SMTP_DOMAIN=your-domain-here.com
+SMTP_USER_NAME=you@gmail.com
+SMTP_PASSWORD=somepassword
+SMTP_SERVER=smtp.gmail.com
+SMTP_PORT=587
+SMTP_AUTHENTICATION=plain
+SMTP_ENABLE_STARTTLS_AUTO=true
+
+# The address from which system emails will appear to be sent.
+EMAIL_FROM_ADDRESS=from_address@gmail.com
+
+# This invitation code will be required for users to signup with your Huginn installation.
+# You can see its use in user.rb.
+INVITATION_CODE=try-huginn

+ 1 - 1
deployment/site-cookbooks/huginn_production/recipes/default.rb

@@ -62,7 +62,7 @@ cookbook_file "home/huginn/huginn/Gemfile" do
 end
 
 cookbook_file "home/huginn/huginn/.env" do
-  source ".env"
+  source ".env.example"
   mode "666"
   owner "huginn"
 end