forked from SCPR/firetracker
-
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.
Squashed commit of the following: commit 1aea65f Author: Bryan Ricker <[email protected]> Date: Thu Aug 21 00:35:31 2014 -0700 Add dbsync commit dbfb14a Author: Bryan Ricker <[email protected]> Date: Fri Jul 11 21:53:05 2014 -0700 Use SITE_ROOT instead of BASE_DIR commit da0bca3 Author: Bryan Ricker <[email protected]> Date: Fri Jul 11 21:45:35 2014 -0700 Remove migrations/init from gitignore commit 2c4405e Author: Bryan Ricker <[email protected]> Date: Fri Jul 11 21:43:55 2014 -0700 Update SITE_URL; fix STATIC_ROOT commit 958d7f3 Merge: 08f95e3 6ddd3e3 Author: Bryan Ricker <[email protected]> Date: Fri Jul 11 20:24:41 2014 -0700 Merge remote-tracking branch 'origin/master' into config-updates Conflicts: fabfile.py commit 08f95e3 Author: Bryan Ricker <[email protected]> Date: Fri Jul 11 20:24:05 2014 -0700 Remove some fabric commands commit 387a6a7 Author: Bryan Ricker <[email protected]> Date: Sun Jul 6 23:47:25 2014 -0700 Add missing init file commit 5251035 Author: Bryan Ricker <[email protected]> Date: Sun Jul 6 23:16:49 2014 -0700 Remove deploy functions from fabfile commit 38b92b7 Author: Bryan Ricker <[email protected]> Date: Fri Jul 4 19:21:34 2014 -0700 Update fabfile; run pip on every deploy; point to correct python commit d3f66f7 Author: Bryan Ricker <[email protected]> Date: Fri Jul 4 11:24:47 2014 -0700 Remove psycopg dep commit 33e4a2c Author: Bryan Ricker <[email protected]> Date: Fri Jul 4 11:22:58 2014 -0700 Update MySQL-python version commit 6d37822 Author: Bryan Ricker <[email protected]> Date: Fri Jul 4 11:17:36 2014 -0700 Update production settings file commit e531722 Author: Bryan Ricker <[email protected]> Date: Fri Jul 4 11:14:48 2014 -0700 Update gitkeep filename commit d3d6bf3 Author: Bryan Ricker <[email protected]> Date: Fri Jul 4 11:14:23 2014 -0700 Update passenger loader commit 2834af4 Author: Bryan Ricker <[email protected]> Date: Fri Jul 4 11:13:50 2014 -0700 Add config files to gitignore
- Loading branch information
Showing
11 changed files
with
116 additions
and
78 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
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,4 @@ | ||
source "https://rubygems.org" | ||
|
||
gem 'rake' | ||
gem 'dbsync', [">= 1.0.0.beta3", "< 2.0.0"] |
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,29 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
activesupport (4.1.5) | ||
i18n (~> 0.6, >= 0.6.9) | ||
json (~> 1.7, >= 1.7.7) | ||
minitest (~> 5.1) | ||
thread_safe (~> 0.1) | ||
tzinfo (~> 1.1) | ||
climate_control (0.0.3) | ||
activesupport (>= 3.0) | ||
cocaine (0.5.4) | ||
climate_control (>= 0.0.3, < 1.0) | ||
dbsync (1.0.0.beta3) | ||
cocaine (>= 0.5.0, < 0.6) | ||
i18n (0.6.11) | ||
json (1.8.1) | ||
minitest (5.4.0) | ||
rake (10.3.2) | ||
thread_safe (0.3.4) | ||
tzinfo (1.2.2) | ||
thread_safe (~> 0.1) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
dbsync (>= 1.0.0.beta3, < 2.0.0) | ||
rake |
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 @@ | ||
require 'dbsync/rake_tasks' |
File renamed without changes.
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,17 @@ | ||
# Copy this file into dbsync_setup.rb and update the information. | ||
|
||
Dbsync.file_config = { | ||
:strategy => :curl, | ||
:bin_opts => "--netrc", | ||
:local => "~/dbdumps/dbsync-firetracker.sql", | ||
:remote => "ftp://backups-server.scpr.org/database/firetracker-latest.sql.gz" | ||
} | ||
|
||
# If you haven't set a password (or if dbsync is asking for your | ||
# database password), remove the :password line. | ||
Dbsync.db_config = { | ||
:adapter => "mysql2", | ||
:database => "yourdb", | ||
:username => "youruser", | ||
:password => "yourpassword" | ||
} |
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,19 +1,16 @@ | ||
import os, sys, site | ||
import os, sys, site, yaml | ||
|
||
#REMOTE_APP_ROOT = "/Users/bryan/projects/firetracker" | ||
env = os.environ.setdefault("DJANGO_ENV", "production") | ||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings_%s" % env) | ||
|
||
app_config = yaml.load(open("config/app.yml", 'r'))[env] | ||
|
||
REMOTE_APP_ROOT = "/web/archive/apps/firetracker" | ||
INTERP = "%s/virtualenvs/firetracker/bin/python" % REMOTE_APP_ROOT | ||
INTERP = os.path.join(app_config['bin_root'], 'python') | ||
|
||
if sys.executable != INTERP: os.execl(INTERP, INTERP, *sys.argv) | ||
if sys.executable != INTERP: | ||
os.execl(INTERP, INTERP, *sys.argv) | ||
|
||
sys.path.append(REMOTE_APP_ROOT) | ||
sys.path.append('%s/firetracker' % REMOTE_APP_ROOT) | ||
|
||
|
||
sys.path.append(REMOTE_APP_ROOT) | ||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings_production") | ||
sys.path.append(os.getcwd()) | ||
|
||
import django.core.handlers.wsgi | ||
application = django.core.handlers.wsgi.WSGIHandler() |
Empty file.
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