theme-juice 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -7
- data/lib/theme-juice/scaffold.rb +2 -1
- data/lib/theme-juice/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4964da65fba7f6f253d08619b19586abf43665bc
|
4
|
+
data.tar.gz: 70d86b05315d3bfb93f82a48cf8ce7c633e7a974
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8793bb4a4d6823dd35984a6f9e435468c12f56175eaac2f33738015388606db66f29abc2d4d05e501e64984b20710e7116aaa07d10dfa425f2c6f2823ce3f5a
|
7
|
+
data.tar.gz: 29096f37c0136ea829cfe4996041823d96cabee04ae127d3823a70631f6baafd804340299bba268bcf91e27a564596fbdc2f63d1eae4f1bfc3cc3d259412c967
|
data/README.md
CHANGED
@@ -25,19 +25,19 @@ tj init
|
|
25
25
|
#### Create a new development site:
|
26
26
|
Use this to create a new development site. It will automagically set up your entire development environment, including a local development site at `http://<sites-dev-url>.dev` with WordPress installed and a fresh WP database. It will sync up your local site installation with the Vagrant VM. This task will also install and configure Vagrant/VVV into your `~/` directory if it has not already been installed. Site name is optional, as it will be asked for if not given.
|
27
27
|
```bash
|
28
|
-
tj create [<
|
28
|
+
tj create [<SITE-NAME>]
|
29
29
|
```
|
30
30
|
|
31
31
|
#### Setup an existing site:
|
32
32
|
Use this to setup an existing local site installation within the development environment. You will go through the setup process to create the necessary files for the VM, including `vvv-hosts`, `vvv-nginx.conf`, and a fresh database (unless one already exists by the name chosen). Site name is optional, as it will be asked for if not given.
|
33
33
|
```bash
|
34
|
-
tj setup [<
|
34
|
+
tj setup [<SITE-NAME>] # Alias for 'tj create [<SITE-NAME>] --bare'
|
35
35
|
```
|
36
36
|
|
37
37
|
#### Delete a site from the VM: _(Does not remove your local site)_
|
38
38
|
Use this to remove a site from your development environment. This is only remove files that were generated by `tj`. including the database setup, development url, and shared directories. _It will not touch your local files._
|
39
39
|
```bash
|
40
|
-
tj delete <
|
40
|
+
tj delete <SITE-NAME>
|
41
41
|
```
|
42
42
|
|
43
43
|
#### List all sites in the VM:
|
@@ -49,25 +49,34 @@ tj list
|
|
49
49
|
#### Watch and compile assets: _(Guard)_
|
50
50
|
Use this to watch and compile assets with [Guard](https://github.com/guard/guard). This is simply a wrapper for Guard commands.
|
51
51
|
```bash
|
52
|
-
tj watch # Alias for 'bundle exec guard
|
52
|
+
tj watch # Alias for 'bundle exec guard [COMMANDS]'
|
53
53
|
```
|
54
54
|
|
55
55
|
#### Use for managing development environment: _(Vagrant)_
|
56
56
|
Use this to easily manage your [Varying Vagrant Vagrants](https://github.com/Varying-Vagrant-Vagrants/VVV) development environment. This is simply a wrapper for Vagrant commands.
|
57
57
|
```bash
|
58
|
-
tj vm # Alias for 'cd ~/vagrant && vagrant
|
58
|
+
tj vm # Alias for 'cd ~/vagrant && vagrant [COMMANDS]'
|
59
59
|
```
|
60
60
|
|
61
61
|
#### Use for managing vendor dependencies: _(Composer)_
|
62
62
|
Use this to easily manage your [Composer](https://github.com/composer/composer) dependencies. This is simply a wrapper for Composer commands.
|
63
63
|
```bash
|
64
|
-
tj vendor # Alias for 'composer
|
64
|
+
tj vendor # Alias for 'composer [COMMANDS]'
|
65
65
|
```
|
66
66
|
|
67
67
|
#### Use for managing deployment and migration: _(Capistrano)_
|
68
68
|
Use this to easily manage your deployment and migration with [Capistrano](https://github.com/capistrano/capistrano). This is simply a wrapper for Capistrano commands.
|
69
69
|
```bash
|
70
|
-
tj server # Alias for 'bundle exec cap
|
70
|
+
tj server # Alias for 'bundle exec cap [COMMANDS]'
|
71
|
+
```
|
72
|
+
|
73
|
+
#### Executing WP-CLI locally inside your VM with `wp-cli-ssh`
|
74
|
+
You can run `wp` commands locally if you specify a `--host`. Upon setup, an `ssh` block for the VM is automatically added to the `wp-cli.yml` file with all of your development environment paths.
|
75
|
+
```bash
|
76
|
+
wp ssh --host=vagrant [COMMANDS]
|
77
|
+
|
78
|
+
# Create an alias
|
79
|
+
alias wpv="wp ssh --host=vagrant"
|
71
80
|
```
|
72
81
|
|
73
82
|
## Contributing
|
data/lib/theme-juice/scaffold.rb
CHANGED
@@ -306,6 +306,7 @@ module ThemeJuice
|
|
306
306
|
def setup_wildcard_subdomains
|
307
307
|
say "Setting up wildcard subdomains...", :yellow
|
308
308
|
open File.expand_path("~/vagrant/Vagrantfile"), "a+" do |file|
|
309
|
+
file.puts "\n"
|
309
310
|
file.puts "###"
|
310
311
|
file.puts "# Enable wildcard subdomains"
|
311
312
|
file.puts "#"
|
@@ -454,7 +455,7 @@ module ThemeJuice
|
|
454
455
|
file.puts "# This block is automatically generated by ThemeJuice. Do not edit."
|
455
456
|
file.puts "###"
|
456
457
|
file.puts "Vagrant.configure('2') do |config|"
|
457
|
-
file.puts "\tconfig.vm.synced_folder '#{@opts[:site_location]}', '/srv/www/tj-#{@opts[:site_name]}', mount_options: ['dmode=777,fmode=777']"
|
458
|
+
file.puts "\tconfig.vm.synced_folder '#{@opts[:site_location]}', '/srv/www/tj-#{@opts[:site_name]}', mount_options: ['dmode=777','fmode=777']"
|
458
459
|
file.puts "\tconfig.landrush.host '#{@opts[:dev_url]}', '192.168.50.4'"
|
459
460
|
file.puts "end"
|
460
461
|
file.puts "### End '#{@opts[:site_name]}'"
|
data/lib/theme-juice/version.rb
CHANGED