Skip to content
This repository has been archived by the owner on Mar 5, 2019. It is now read-only.

Capistrano subdir configuration #155

Open
wants to merge 7 commits into
base: capistrano_subdir_configuration
Choose a base branch
from

Conversation

JohnSmall
Copy link

Each Pull Request should relate to a single feature, therefore a single Issue. The smaller the Pull Request the faster it can be reviewed & merged. It should not be merged by the author.

Issues to close

Fixes #133

Notes

Notes on the Pull Request.

This holds the configurations required to run the Rails app behind Nginx and Phusion Passenger using deployment from a sub-tree in this case src/ruby/meetings

Requires a properly configured instance to deploy into. See my comment on #133

Once there's a fully configured instance in place then cd into src/ruby/meetings and run

cap production deploy:first_time

Which will set things up correctly, though I'll have to edit the production Nginx configuration file

It's best if I do that first step. After that all deploys become simply

cap production deploy

Tasks

Once merged to master, I'll do the first deployment and wire up Nginx to make the site visible. After that anyone can deploy

  • Documentation (inc. diagrams) - create/update accordingly

@@ -16,7 +16,7 @@
# server list. The second argument is a, or duck-types, Hash and is
# used to set extended properties on the server.
set :domain,YAML.load_file('config/deploy.yml')[fetch(:stage)][:domain]
server fetch(:domain), user: 'ubuntu', roles: %w{db web app}#, my_property: :my_value
server fetch(:domain), user: 'rails', roles: %w{db web app}#, my_property: :my_value

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

%w-literals should be delimited by ( and ).
Missing space after #.
Put a space before an end-of-line comment.
Line is too long. [84/80]

@@ -24,7 +27,7 @@
# set :pty, true

# Default value for :linked_files is []
set :linked_files, ['config/database.yml','config/secrets.yml','config/deploy.yml','config/environment_params.yml']
set :linked_files, ['config/database.yml','config/secrets.yml','config/environment_params.yml']

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Space missing after comma.
Line is too long. [95/80]

@@ -1,4 +1,8 @@
# config valid only for Capistrano 3.1
# See http://stackoverflow.com/questions/29168/deploying-a-git-subdirectory-in-capistrano/6969505#6969505 for instructions on how

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long. [129/80]

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

im ok with that

@elischutze
Copy link
Member

elischutze commented Mar 5, 2017

@JohnSmall could you make the houndci-bot changes?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants