Skip to content
Jamie Wagner edited this page Aug 26, 2014 · 3 revisions

If you administer your content through the control panel, chances are you have some content changes and additions up on the server. This command will pull the contents of the _content directory down for you to keep things in sync. Stag can pull content with git, rsync or ftp.

Configuration

The pull_content config needs to be nested under the server name in your servers configuration.

Example:

pull_content:
  commit_message: "Content update from production"
  content_directories: 
    - _content
    - assets

commit_message: If you are using git, this will be the commit message used when the server pushes up changes.

content_directories: If you don't set this, only the _content directory's content will be pulled down. If you are uploading files to a separate directory, you might want to add that file here.

Use

####stag pull_content <server_name> This will pull content down as you have it configured to do so.

Clone this wiki locally