forked from Team254/cheesy-parts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
49 lines (40 loc) · 1.3 KB
/
Rakefile
File metadata and controls
49 lines (40 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Copyright 2012 Team 254. All Rights Reserved.
# @author pat@patfairbank.com (Patrick Fairbank)
#
# Contains maintenance and deployment configuration.
require "bundler/setup"
require "fezzik"
require "pathological"
require "sequel"
Sequel.extension :migration
# Task for executing any pending database schema changes.
namespace :db do
task :migrate do
require "db"
# Sequel::Model.plugin(:schema)
Sequel::Migrator.run(DB, "db/migrations")
end
end
include Fezzik::DSL
Fezzik.init(:tasks => "config/tasks")
# FIXME: Not sure what the following should be changed to, but it should be re-branded
set :app, "cheesy-parts"
set :deploy_to, "/opt/team254/#{app}"
set :release_path, "#{deploy_to}/releases/#{Time.now.strftime("%Y%m%d%H%M")}"
set :local_path, Dir.pwd
set :user, "ubuntu"
# FIXME: Same thing, needs our settings
Fezzik.destination :prod do
# Fill in parameters for deployment host, database and e-mail account here.
set :domain, "#{user}@parts.team254.com"
env :port, 9000
env :db_host, "localhost"
env :db_user, "team254"
env :db_password, "correcthorsebatterystaple"
env :db_database, "cheesy_parts"
env :url, "http://parts.team254.com"
env :gmail_user, "cheesyparts@gmail.com"
env :gmail_password, "correcthorsebatterystaple"
env :wordpress_auth_url, ""
env :logout_url, "http://team254.com"
end