forked from huginn/huginn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First version of the manual deployment guide
- Loading branch information
Showing
12 changed files
with
691 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,3 +25,4 @@ deployment/cookbooks | |
.ruby-gemset | ||
.ruby-version | ||
manifest.yml | ||
config/unicorn.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,27 @@ | ||
################# | ||
# DEVELOPMENT # | ||
################# | ||
|
||
# Procfile for development using the new threaded worker (scheduler, twitter stream and delayed job) | ||
web: bundle exec rails server -b0.0.0.0 | ||
jobs: bundle exec rails runner bin/threaded.rb | ||
|
||
# Possible Profile configuration for production: | ||
# web: bundle exec unicorn -c config/unicorn/production.rb | ||
# Old version with separate processes (use this if you have issues with the threaded version) | ||
# web: bundle exec rails server | ||
# schedule: bundle exec rails runner bin/schedule.rb | ||
# twitter: bundle exec rails runner bin/twitter_stream.rb | ||
# dj: bundle exec script/delayed_job run | ||
|
||
################# | ||
# PRODUCTION # | ||
################# | ||
|
||
# Using the threaded worker (consumes less RAM but can run slower) | ||
# web: bundle exec unicorn -c config/unicorn.rb | ||
# jobs: bundle exec rails runner bin/threaded.rb | ||
|
||
# Old version with separate processes (use this if you have issues with the threaded version) | ||
# web: bundle exec rails server -b0.0.0.0 | ||
# web: bundle exec unicorn -c config/unicorn.rb | ||
# schedule: bundle exec rails runner bin/schedule.rb | ||
# twitter: bundle exec rails runner bin/twitter_stream.rb | ||
# dj: bundle exec script/delayed_job run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
wd = "/home/huginn/huginn" | ||
|
||
app_path = wd | ||
|
||
worker_processes 2 | ||
preload_app true | ||
timeout 180 | ||
listen "#{wd}/tmp/sockets/unicorn.socket" | ||
|
||
working_directory app_path | ||
|
||
rails_env = ENV['RAILS_ENV'] || 'production' | ||
|
||
# Log everything to one file | ||
stderr_path "log/unicorn.log" | ||
stdout_path "log/unicorn.log" | ||
|
||
# Set master PID location | ||
pid "#{wd}/tmp/pids/unicorn.pid" | ||
|
||
before_fork do |server, worker| | ||
ActiveRecord::Base.connection.disconnect! | ||
old_pid = "#{server.config[:pid]}.oldbin" | ||
if File.exist?(old_pid) && server.pid != old_pid | ||
begin | ||
Process.kill("QUIT", File.read(old_pid).to_i) | ||
rescue Errno::ENOENT, Errno::ESRCH | ||
# someone else did our job for us | ||
end | ||
end | ||
end | ||
|
||
after_fork do |server, worker| | ||
ActiveRecord::Base.establish_connection | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Documentation | ||
|
||
## User documentation | ||
|
||
- [Check out Huginn with Docker](./tobewritten.md) Run a local Huginn installation using Docker | ||
|
||
|
||
## Administrator documentation | ||
|
||
- [Install](install/README.md) Requirements, directory structures and installation from source. | ||
- [Update](update/README.md) Update guides to upgrade your installation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Installation | ||
|
||
- [Requirements](requirements.md) Software and hardware requirements to run the Huginn installation | ||
- [Install](installation.md) Installation guide for Ubundu/Debian | ||
- [Update](update.md) Update an existing Huginn installation |
Oops, something went wrong.