@@ -1 +0,0 @@ |
||
| 1 |
-.DS_Store |
@@ -1,3 +1,4 @@ |
||
| 1 |
+Make sure you have Vagrant and Virtualbox(Not necessary, if deploying to AWS) installed. |
|
| 1 | 2 |
Install librarian-chef gem |
| 2 | 3 |
|
| 3 | 4 |
gem install librarian-chef |
@@ -7,7 +8,7 @@ And Vagrant plugins |
||
| 7 | 8 |
vagrant plugin install vagrant-aws |
| 8 | 9 |
vagrant plugin install vagrant-omnibus |
| 9 | 10 |
|
| 10 |
-Move to repo directory and run |
|
| 11 |
+Move to `/deployment` and run |
|
| 11 | 12 |
|
| 12 | 13 |
librarian-chef install |
| 13 | 14 |
|
@@ -42,4 +43,3 @@ To terminate ec2 instance: |
||
| 42 | 43 |
Similarly, to destroy VirtualBox VM |
| 43 | 44 |
|
| 44 | 45 |
vagrant destroy vb |
| 45 |
- |
@@ -0,0 +1,42 @@ |
||
| 1 |
+# ==== Required configuration settings for Huginn ==== |
|
| 2 |
+ |
|
| 3 |
+# Replace the following with the output from "rake secret" |
|
| 4 |
+APP_SECRET_TOKEN=REPLACE_ME_NOW! |
|
| 5 |
+ |
|
| 6 |
+# This is the domain where your Huginn instance will be running. The default should work |
|
| 7 |
+# for development, but it needs to be changed when you deploy to a production environment. |
|
| 8 |
+#DOMAIN=localhost:3000 |
|
| 9 |
+ |
|
| 10 |
+# Database Setup |
|
| 11 |
+DATABASE_ADAPTER=mysql2 |
|
| 12 |
+DATABASE_ENCODING=utf8 |
|
| 13 |
+DATABASE_RECONNECT=true |
|
| 14 |
+DATABASE_NAME=huginn_production |
|
| 15 |
+DATABASE_POOL=5 |
|
| 16 |
+DATABASE_USERNAME=root |
|
| 17 |
+DATABASE_PASSWORD= |
|
| 18 |
+#DATABASE_HOST=your-domain-here.com |
|
| 19 |
+#DATABASE_PORT=3306 |
|
| 20 |
+#DATABASE_SOCKET=/tmp/mysql.sock |
|
| 21 |
+ |
|
| 22 |
+# ==== Additional required production settings ==== |
|
| 23 |
+ |
|
| 24 |
+# Configure Rails environment. This should only be needed in production and may cause errors in development. |
|
| 25 |
+RAILS_ENV=production |
|
| 26 |
+ |
|
| 27 |
+# Outgoing email settings. To use Gmail or Google Apps, put your Google Apps domain or gmail.com |
|
| 28 |
+# as the SMTP_DOMAIN and your Gmail username and password as the SMTP_USER_NAME and SMTP_PASSWORD. |
|
| 29 |
+SMTP_DOMAIN=your-domain-here.com |
|
| 30 |
+SMTP_USER_NAME=you@gmail.com |
|
| 31 |
+SMTP_PASSWORD=somepassword |
|
| 32 |
+SMTP_SERVER=smtp.gmail.com |
|
| 33 |
+SMTP_PORT=587 |
|
| 34 |
+SMTP_AUTHENTICATION=plain |
|
| 35 |
+SMTP_ENABLE_STARTTLS_AUTO=true |
|
| 36 |
+ |
|
| 37 |
+# The address from which system emails will appear to be sent. |
|
| 38 |
+EMAIL_FROM_ADDRESS=from_address@gmail.com |
|
| 39 |
+ |
|
| 40 |
+# This invitation code will be required for users to signup with your Huginn installation. |
|
| 41 |
+# You can see its use in user.rb. |
|
| 42 |
+INVITATION_CODE=try-huginn |
@@ -62,7 +62,7 @@ cookbook_file "home/huginn/huginn/Gemfile" do |
||
| 62 | 62 |
end |
| 63 | 63 |
|
| 64 | 64 |
cookbook_file "home/huginn/huginn/.env" do |
| 65 |
- source ".env" |
|
| 65 |
+ source ".env.example" |
|
| 66 | 66 |
mode "666" |
| 67 | 67 |
owner "huginn" |
| 68 | 68 |
end |