Huginn cloudfoudnry compatible

Johannes Engelke | hybris 9 years ago
parent
commit
0c9c08168c
5 changed files with 50 additions and 1 deletions
  1. 1 0
      .cfignore
  2. 1 0
      .gitignore
  3. 2 0
      Procfile.CF
  4. 1 1
      config/environments/production.rb
  5. 45 0
      manifest.yml.sample

+ 1 - 0
.cfignore

@@ -0,0 +1 @@
1
+.env

+ 1 - 0
.gitignore

@@ -24,3 +24,4 @@ deployment/cookbooks
24 24
 .*un~
25 25
 .ruby-gemset
26 26
 .ruby-version
27
+manifest.yml

+ 2 - 0
Procfile.CF

@@ -0,0 +1,2 @@
1
+web: bundle exec rake db:migrate && bundle exec rails server -p $PORT
2
+jobs: bundle exec rails runner bin/threaded.rb

+ 1 - 1
config/environments/production.rb

@@ -20,7 +20,7 @@ Huginn::Application.configure do
20 20
   # config.action_dispatch.rack_cache = true
21 21
 
22 22
   # Disable Rails's static asset server (Apache or nginx will already do this)
23
-  config.serve_static_assets = false
23
+  config.serve_static_assets = ENV['SERVE_STATIC_ASSETS']
24 24
 
25 25
   # Compress JavaScripts and CSS
26 26
   config.assets.js_compressor  = :uglifier

+ 45 - 0
manifest.yml.sample

@@ -0,0 +1,45 @@
1
+---
2
+applications:
3
+- name: huginn
4
+  url: <app-url>
5
+  path: .
6
+  memory: 512M
7
+  command: nohup foreman start --procfile Procfile.CF
8
+  instances: 1
9
+  # For the environment setup please have a look into the .evn.example file
10
+  env:
11
+    APP_SECRET_TOKEN: "${random-word}${random-word}${random-word}${random-word}${random-word}${random-word}${random-word}${random-word}"
12
+    INVITATION_CODE: "try-huginn"
13
+    DOMAIN: "<app-url>"
14
+    RAILS_ENV: "production"
15
+    SERVE_STATIC_ASSETS: true
16
+    FORCE_SSL: "true"
17
+    SMTP_DOMAIN: "your-domain-here.com"
18
+    SMTP_USER_NAME: "you@gmail.com"
19
+    SMTP_PASSWORD: "somepassword"
20
+    SMTP_SERVER: "smtp.gmail.com"
21
+    SMTP_PORT: 587
22
+    SMTP_AUTHENTICATION: "plain"
23
+    SMTP_ENABLE_STARTTLS_AUTO: true
24
+    EMAIL_FROM_ADDRESS: "from_address@gmail.com"
25
+    AGENT_LOG_LENGTH: 200
26
+    TWITTER_OAUTH_KEY: ""
27
+    TWITTER_OAUTH_SECRET: ""
28
+    THIRTY_SEVEN_SIGNALS_OAUTH_KEY: ""
29
+    THIRTY_SEVEN_SIGNALS_OAUTH_SECRET: ""
30
+    GITHUB_OAUTH_KEY: ""
31
+    GITHUB_OAUTH_SECRET: ""
32
+    TUMBLR_OAUTH_KEY: ""
33
+    TUMBLR_OAUTH_SECRET: ""
34
+    DROPBOX_OAUTH_KEY: ""
35
+    DROPBOX_OAUTH_SECRET: ""
36
+    AWS_ACCESS_KEY_ID: "your aws access key id"
37
+    AWS_ACCESS_KEY: "your aws access key"
38
+    AWS_SANDBOX: false
39
+    FARADAY_HTTP_BACKEND: "typhoeus"
40
+    DEFAULT_HTTP_USER_AGENT: "Huginn - https://github.com/cantino/huginn"
41
+    ALLOW_JSONPATH_EVAL: false
42
+    ENABLE_INSECURE_AGENTS: false
43
+    ENABLE_SECOND_PRECISION_SCHEDULE: false
44
+    FAILED_JOBS_TO_KEEP: 100
45
+    TIMEZONE: "Pacific Time (US & Canada)"