theme-juice 0.11.4 → 0.11.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1541b241cb617ee0ca1a9eadec0c2fc45e87347e
4
- data.tar.gz: 306459b040079cf91e3476077e1e0cc45a55b275
3
+ metadata.gz: 837a7dea5806960df71dc8b43e799891a55b6e97
4
+ data.tar.gz: 78e3efeaeb878a91607f48b1b6b97df18713433a
5
5
  SHA512:
6
- metadata.gz: 288a3d4c347f579cc0a25a049ba9ea62305b944e859f19a1b3b19900ab00430ffd0df269085177992a067555af268af9d9888daaf3df1a2be67951a11af22f2b
7
- data.tar.gz: caf7564b1d55d9fc208fa98531c0bf3d99e3a63ffea42a2e12348911e9ec30a9d525c227272c5876dc5beaea41bd4018539d891e1c2187089d4ad33ba4907acb
6
+ metadata.gz: 6b632d35abfd2df9ef2359c524cc05028aa778a0fbf9fbf90e322bdb3d8750fae62dbed987e5ecd90161f991c1a6a4f1e6f7854e001c8d998fc55eae5e198b81
7
+ data.tar.gz: fd693fbf56dabc408a1bfc41206506d9aa0042beca7729e1318ebc898ad784521516c98a508995885a5db626c5ddd4b7b033c7bab5560091a5e4982b57b5e01b
data/README.md CHANGED
@@ -12,11 +12,9 @@ _The master branch contains features currently in development (such as deploymen
12
12
 
13
13
  [View our contributing guidelines to get started!](#contributing)
14
14
 
15
-
16
15
  ## What is it?
17
16
  Theme Juice (`tj`) is a command line utility for modern WordPress development. It allows you to scaffold out a Vagrant development environment in seconds (using an Apache fork of [VVV](https://github.com/Varying-Vagrant-Vagrants/VVV) called [VVV-Apache](https://github.com/ericmann/vvv-apache.git) as the VM), and generate/manage an unlimited number of development projects. It also helps you manage dependencies and build tools, and can even handle your deployments.
18
17
 
19
-
20
18
  ## Requirements
21
19
  **`tj` requires [Vagrant](https://www.vagrantup.com/) and [VirtualBox](https://www.virtualbox.org/) to be able to create virtual machines for local development. Please download and install both of these before getting started.**
22
20
 
@@ -90,6 +88,7 @@ Or, you can also check out [themejuice.it](http://themejuice.it) for a pretty we
90
88
  1. [What is a `Customfile`?](#what-is-a-customfile)
91
89
  1. [What is a `Juicefile`?](#what-is-a-juicefile)
92
90
  1. [Does `tj` handle deployments?](#does-tj-handle-deployments)
91
+ 1. [Does `tj` support subdomain multi-sites?](#does-tj-support-subdomain-multi-sites)
93
92
  1. [Can I access a project from another device (i.e. mobile)?](#can-i-access-a-project-from-another-device-ie-mobile)
94
93
  1. [Help! It won't let me `git clone` anything!](#help-it-wont-let-me-git-clone-anything)
95
94
  1. [Can I add my starter theme, ________?](#can-i-add-my-starter-theme-________)
@@ -215,6 +214,9 @@ You can specify an unlimited number of commands with an unlimited number of argu
215
214
  #### Does `tj` handle deployments?
216
215
  As of `0.11`, yes! Check out the [documentation](http://themejuice.it/deploy) to get started.
217
216
 
217
+ #### Does `tj` support subdomain multi-sites?
218
+ If you're able to use [Landrush](https://github.com/phinze/landrush) for your DNS, then yes. All subdomains will resolve to their parent domain. Landrush comes pre-installed when you create your first project with `tj`. Having said that, unfortunately, if you're on Windows you'll probably have to manually add the subdomains due to Landrush not being fully supported. If you have the Windows chops, head over there and contribute to Landrush by squashing that bug. I'm sure he would appreciate it!
219
+
218
220
  #### Can I access a project from another device (i.e. mobile)?
219
221
  Yes! Every project created with `tj` will automatically be set up to support using [xip.io](http://xip.io/). If you're using OSX, then everything should work out of the box. If you're not using OSX, then you'll need to point port `80` on your host machine to `8080`; Vagrant cannot do this by default for security reasons.
220
222
 
@@ -11,24 +11,25 @@ namespace :db do
11
11
 
12
12
  desc "Backup database on remote to local"
13
13
  task :backup do
14
- invoke "db:init"
14
+ set :timestamp_backup, Time.now.strftime("%Y-%m-%d-%H-%M-%S")
15
+ set :remote_db_backup, "#{fetch(:timestamp_backup)}.#{fetch(:stage)}.backup.sql"
15
16
 
16
17
  on release_roles(:db) do
17
18
 
18
19
  within release_path do
19
20
  execute :mkdir, "-p", fetch(:tmp_dir)
20
- execute :wp, :db, :export, "#{fetch(:tmp_dir)}/#{fetch(:remote_db)}", "--add-drop-table"
21
+ execute :wp, :db, :export, "#{fetch(:tmp_dir)}/#{fetch(:remote_db_backup)}", "--add-drop-table"
21
22
  end
22
23
 
23
24
  run_locally do
24
25
  execute :mkdir, "-p", fetch(:vm_backup_dir)
25
26
  end
26
27
 
27
- download! release_path.join("#{fetch(:tmp_dir)}/#{fetch(:remote_db)}"),
28
- "#{fetch(:vm_backup_dir)}/#{fetch(:remote_db)}"
28
+ download! release_path.join("#{fetch(:tmp_dir)}/#{fetch(:remote_db_backup)}"),
29
+ "#{fetch(:vm_backup_dir)}/#{fetch(:remote_db_backup)}"
29
30
 
30
31
  within release_path do
31
- execute :rm, "#{fetch(:tmp_dir)}/#{fetch(:remote_db)}"
32
+ execute :rm, "#{fetch(:tmp_dir)}/#{fetch(:remote_db_backup)}"
32
33
  end
33
34
  end
34
35
  end
@@ -36,6 +37,7 @@ namespace :db do
36
37
  desc "Push local database to remote"
37
38
  task :push do
38
39
  invoke "db:backup"
40
+ invoke "db:init"
39
41
 
40
42
  on roles(:dev) do
41
43
  within fetch(:dev_path) do
@@ -64,6 +66,7 @@ namespace :db do
64
66
  desc "Pull remote database to local"
65
67
  task :pull do
66
68
  invoke "db:backup"
69
+ invoke "db:init"
67
70
 
68
71
  on release_roles(:db) do
69
72
  within release_path do
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
2
 
3
3
  module ThemeJuice
4
- VERSION = "0.11.4"
4
+ VERSION = "0.11.5"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: theme-juice
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.4
4
+ version: 0.11.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ezekiel Gabrielse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-09 00:00:00.000000000 Z
11
+ date: 2015-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor