Skip to content

Commit 0c9c081

Browse files
author
Johannes Engelke | hybris
committed
Huginn cloudfoudnry compatible
1 parent 45eade1 commit 0c9c081

File tree

5 files changed

+50
-1
lines changed

5 files changed

+50
-1
lines changed

.cfignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.env

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ deployment/cookbooks
2424
.*un~
2525
.ruby-gemset
2626
.ruby-version
27+
manifest.yml

Procfile.CF

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

config/environments/production.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# config.action_dispatch.rack_cache = true
2121

2222
# 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']
2424

2525
# Compress JavaScripts and CSS
2626
config.assets.js_compressor = :uglifier

manifest.yml.sample

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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: "[email protected]"
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: "[email protected]"
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)"

0 commit comments

Comments
 (0)