Browse Source

Add deployment config files

master
Dylan Baker 4 years ago
parent
commit
bd913d417d
2 changed files with 25 additions and 0 deletions
  1. 6
    0
      web/config.ru
  2. 19
    0
      web/unicorn.rb

+ 6
- 0
web/config.ru View File

@@ -0,0 +1,6 @@
1
+require "rubygems"
2
+require "sinatra"
3
+
4
+require '/var/www/vlv-search/web/server.rb'
5
+
6
+run VLVSearch

+ 19
- 0
web/unicorn.rb View File

@@ -0,0 +1,19 @@
1
+# set path to app that will be used to configure unicorn,
2
+# note the trailing slash in this example
3
+@dir = "/var/www/vlv-search/web/"
4
+
5
+worker_processes 2
6
+working_directory @dir
7
+
8
+timeout 30
9
+
10
+# Specify path to socket unicorn listens to,
11
+# we will use this in our nginx.conf later
12
+listen "#{@dir}tmp/sockets/unicorn.sock", :backlog => 64
13
+
14
+# Set process id path
15
+pid "#{@dir}tmp/pids/unicorn.pid"
16
+
17
+# Set log file paths
18
+# stderr_path "#{@dir}log/unicorn.stderr.log"
19
+# stdout_path "#{@dir}log/unicorn.stdout.log"

Loading…
Cancel
Save