Commit db3ecc2d authored by charlie-ablett's avatar charlie-ablett
Browse files

Deployment setup for new box

parent 4ca0c3cc
......@@ -11,6 +11,7 @@ require "action_mailer/railtie"
# require "action_cable/engine"
# require "sprockets/railtie"
# require "rails/test_unit/railtie"
require 'dotenv' ; Dotenv.load ".env.local", ".env.#{Rails.env}"
require_relative '../app/middleware/catch_json_parse_errors'
......
......@@ -7,7 +7,7 @@ lock '3.4.1'
set :application, 'ink-api'
set :repo_url, 'git@gitlab.coko.foundation:INK/ink-api.git'
set :linked_files, fetch(:linked_files, []).push('config/database.yml', 'config/secrets.yml', '.env', 'StepGemfile')#'config/ink_api.yml',
set :linked_files, fetch(:linked_files, []).push('config/database.yml', 'config/secrets.yml', '.env', 'StepGemfile', 'config/ink_api.yml')
set :linked_dirs, fetch(:linked_dirs, []).push('log', 'tmp/pids', 'tmp/cache', 'tmp/sockets', 'vendor/bundle', 'public/system', 'public/uploads')
set :bundle_binstubs, nil
......
......@@ -2,10 +2,12 @@ set :stage, :production
set :rails_env, 'production'
# server '162.243.148.158', user: 'admin', roles: %w{web app} #discourse
server '46.101.192.238', user: 'charlie', roles: %w{web app} #ink
set :deploy_to, '/home/ink-api/production'
set :branch, 'production'
server '46.101.192.238', user: 'deploy', roles: %w{web app} #ink
set :deploy_to, '/home/deploy/ink-api/production'
set :rbenv_path, '/var/opt/rbenv'
# server-based syntax
# ======================
# Defines a single server with a list of roles and multiple properties.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment