-
-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved vars out to default files. Fixed bugs in seeds.rb. Removed handling of S3 config. Backups are stored in /backups sub-folder.
- Loading branch information
Showing
18 changed files
with
113 additions
and
25 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 |
---|---|---|
|
@@ -4,3 +4,6 @@ ssl.key | |
vars.yml | ||
files/* | ||
-files/README.md | ||
production | ||
staging | ||
backups/* |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Backups | ||
|
||
This directory is a default location for backup files. | ||
|
||
Override the `local_backup_path` variable if you wish to change it. |
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
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
local_backup_path: "{{ playbook_dir }}/backups" | ||
local_rsync_path: "{{ playbook_dir }}/backups" |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
# home_path: "/home/{{ user }}" |
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,3 @@ | ||
--- | ||
rollback_path: "{{ app_path }}/rollback" | ||
rollback_sql_path: "{{ app_path }}/rollback.sql.gz" |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
|
||
#---------------------------------------------------------------------- | ||
# Nginx variables | ||
app_root: "{{ current_path }}" | ||
port: 3000 | ||
# domain: is set above | ||
|
||
#---------------------------------------------------------------------- | ||
# Unicorn variables | ||
unicorn_user: "{{ user }}" | ||
unicorn_config: "{{ config_path }}/unicorn.rb" | ||
unicorn_log: "{{ log_path }}/unicorn.log" | ||
unicorn_pid: "{{ pid_path }}/unicorn.pid" | ||
unicorn_sock: "{{ sock_path }}/unicorn.{{ app }}.sock" | ||
unicorn_workers: 2 | ||
unicorn_timeout: 30 | ||
|
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
|
||
|
||
#---------------------------------------------------------------------- | ||
# Rails variables | ||
ruby: 1.9.3-p392 | ||
gem_path: /home/{{ user }}/.gem | ||
bundle_path: /home/{{ user }}/.rbenv/shims/bundle | ||
env: | ||
RAILS_ENV: "{{ rails_env }}" | ||
PATH: "{{ gem_home }}/bin:{{ ansible_env.PATH }}" | ||
|
||
#---------------------------------------------------------------------- | ||
# Database variables | ||
db: openfoodnetwork | ||
test_db: ofn_test | ||
db_user: ofn_user | ||
db_host: localhost | ||
|
||
#---------------------------------------------------------------------- | ||
# App variables | ||
app: openfoodnetwork | ||
|
||
home_path: "/home/{{ user }}" | ||
app_path: "{{ home_path }}/apps/{{ app }}" | ||
current_path: "{{ app_path }}/current" | ||
repo_path: "{{ app_path }}/repo" | ||
build_path: "{{ app_path }}/build" | ||
shared_path: "{{ app_path }}/shared" | ||
backup_path: "{{ app_path }}/backups" | ||
releases_path: "{{ app_path }}/releases-old" | ||
assets_path: "{{ shared_path }}/assets" | ||
system_path: "{{ shared_path }}/system" | ||
spree_path: "{{ shared_path }}/spree" | ||
config_path: "{{ shared_path }}/config" | ||
log_path: "{{ shared_path }}/log" | ||
pid_path: "{{ shared_path }}/pids" | ||
sock_path: "{{ shared_path }}/sock" | ||
git_post_receive: "{{ current_path }}/.git/hooks/post-receive" | ||
i10n_path: "{{ shared_path }}/i10n" | ||
|