Skip to content

ubc-web-services/config-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

config-sync

config-sync is a command line tool that will pull the live configuration from an environment on platform.sh to your local repository, eliminating the need to go to the site, login, export the zipped tar and move the files manually.

Looking for config-sync-bot, the pull request bot?

Installation

First, clone the repository and cd into it. Then run the installer script using the following command.

sh install.sh

It should prompt you to add a script to your PATH; in this case, a script is being added as an executable to /usr/local/bin. You will then be able to invoke the script globally


Usage

Running the command as follows will prompt you for a project ID, and to specify an environment. The configuration from that environment will be pulled into your repository.

configsync

Alternatively, you may also specify either a project ID and/or an environment name using flags:

configsync [-p <PROJECT-ID>] [-e <ENVIRONMENT-NAME>]

configsync -p caldfviq54lyq -e master

In addition, if you would like to skip the confirmation message for overwriting your current config/sync directory, pass in the -y flag:

configsync -y

Repair

In the case that anything breaks, you can always reset your configsync by first running the installation script,

sh uninstall.sh

making sure that your config-sync repository is up to date with master,

git fetch
git reset --hard origin/master

and then re-running the install script.

sh install.sh

If that does not fix the issue, please contact me on GitHub.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages