Skip to content

Commit

Permalink
Merge pull request welaika#49 from Arkham/fix_template
Browse files Browse the repository at this point in the history
updated Movefile template
  • Loading branch information
Ju Liu committed Aug 29, 2013
2 parents fb341b0 + b0be2f9 commit ca7d6f8
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 27 deletions.
36 changes: 23 additions & 13 deletions README.mdown
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,24 @@ You can configure Wordmove creating a `Movefile`. That's just a YAML file with a
```yaml
local:
vhost: "http://vhost.local"
wordpress_path: "~/dev/sites/your_site"
wordpress_path: "/home/john/sites/your_site" # use an absolute path here

database:
name: "database_name"
user: "user"
password: "password"
host: "127.0.0.1"

staging:
vhost: "http://remote.com"
wordpress_path: "/var/www/your_site"
# paths: # you can customize wordpress internal paths
# wp_content: "wp-content"
# uploads: "wp-content/uploads"
# plugins: "wp-content/plugins"
# themes: "wp-content/themes"
# languages: "wp-content/languages"
wordpress_path: "/var/www/your_site" # use an absolute path here

database:
name: "database_name"
user: "user"
password: "password"
host: "host"

exclude:
- ".sass-cache"
- ".git"
Expand All @@ -65,11 +68,16 @@ staging:
- "wp-content/*.sql"
- "Gemfile*"
- "Movefile"
database:
name: "database_name"
user: "user"
password: "password"
host: "host"
- "wp-config.php"

# paths: # you can customize wordpress internal paths
# wp_content: "wp-content"
# uploads: "wp-content/uploads"
# plugins: "wp-content/plugins"
# themes: "wp-content/themes"
# languages: "wp-content/languages"
# themes: "wp-content/themes"

# ssh:
# host: "host"
# user: "user"
Expand All @@ -79,11 +87,13 @@ staging:
# host: "host"
# user: "user"
# password: "password" # password is optional, will use public keys if available.

# ftp:
# user: "user"
# password: "password"
# host: "host"
# passive: true

# production: # multiple environments can be specified
# [...]
```
Expand Down
36 changes: 22 additions & 14 deletions lib/wordmove/generators/Movefile
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
local:
vhost: "http://vhost.local"
wordpress_path: "~/dev/sites/your_site"
wordpress_path: "/home/john/sites/your_site" # use an absolute path here

database:
name: "database_name"
user: "user"
password: "password"
host: "127.0.0.1"

staging:
vhost: "http://remote.com"
wordpress_path: "/var/www/your_site"
# paths: # you can customize wordpress internal paths
# wp_content: "wp-content"
# uploads: "wp-content/uploads"
# plugins: "wp-content/plugins"
# themes: "wp-content/themes"
# languages: "wp-content/languages"
# themes: "wp-content/themes"
wordpress_path: "/var/www/your_site" # use an absolute path here

database:
name: "database_name"
user: "user"
password: "password"
host: "host"

exclude:
- ".sass-cache"
- ".git"
Expand All @@ -25,11 +27,15 @@ staging:
- "Gemfile*"
- "Movefile"
- "wp-config.php"
database:
name: "database_name"
user: "user"
password: "password"
host: "host"

# paths: # you can customize wordpress internal paths
# wp_content: "wp-content"
# uploads: "wp-content/uploads"
# plugins: "wp-content/plugins"
# themes: "wp-content/themes"
# languages: "wp-content/languages"
# themes: "wp-content/themes"

# ssh:
# host: "host"
# user: "user"
Expand All @@ -39,11 +45,13 @@ staging:
# host: "host"
# user: "user"
# password: "password" # password is optional, will use public keys if available.

# ftp:
# user: "user"
# password: "password"
# host: "host"
# passive: true

# production: # multiple environments can be specified
# [...]

0 comments on commit ca7d6f8

Please sign in to comment.