Huginn cloudfoudnry compatible

This commit is contained in:
Johannes Engelke | hybris 2015-03-20 23:01:15 +01:00
parent 45eade1825
commit 0c9c08168c
5 changed files with 50 additions and 1 deletions

1
.cfignore Normal file
View file

@ -0,0 +1 @@
.env

1
.gitignore vendored
View file

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

2
Procfile.CF Normal file
View file

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

View file

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

45
manifest.yml.sample Normal file
View file

@ -0,0 +1,45 @@
---
applications:
- name: huginn
url: <app-url>
path: .
memory: 512M
command: nohup foreman start --procfile Procfile.CF
instances: 1
# For the environment setup please have a look into the .evn.example file
env:
APP_SECRET_TOKEN: "${random-word}${random-word}${random-word}${random-word}${random-word}${random-word}${random-word}${random-word}"
INVITATION_CODE: "try-huginn"
DOMAIN: "<app-url>"
RAILS_ENV: "production"
SERVE_STATIC_ASSETS: true
FORCE_SSL: "true"
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
EMAIL_FROM_ADDRESS: "from_address@gmail.com"
AGENT_LOG_LENGTH: 200
TWITTER_OAUTH_KEY: ""
TWITTER_OAUTH_SECRET: ""
THIRTY_SEVEN_SIGNALS_OAUTH_KEY: ""
THIRTY_SEVEN_SIGNALS_OAUTH_SECRET: ""
GITHUB_OAUTH_KEY: ""
GITHUB_OAUTH_SECRET: ""
TUMBLR_OAUTH_KEY: ""
TUMBLR_OAUTH_SECRET: ""
DROPBOX_OAUTH_KEY: ""
DROPBOX_OAUTH_SECRET: ""
AWS_ACCESS_KEY_ID: "your aws access key id"
AWS_ACCESS_KEY: "your aws access key"
AWS_SANDBOX: false
FARADAY_HTTP_BACKEND: "typhoeus"
DEFAULT_HTTP_USER_AGENT: "Huginn - https://github.com/cantino/huginn"
ALLOW_JSONPATH_EVAL: false
ENABLE_INSECURE_AGENTS: false
ENABLE_SECOND_PRECISION_SCHEDULE: false
FAILED_JOBS_TO_KEEP: 100
TIMEZONE: "Pacific Time (US & Canada)"