Skip to content

sheadawson/silverstripe-bash-deploy

Repository files navigation

silverstripe-bash-deploy

A simple Bash deployment script for a specific hosting scenario - shared host that has git installed but not much else.

Requirements

SilverStripe 3.x or 4.x

Server Requirements

  • git
  • ssh access
  • port 22 open
  • your servers public ssh key added to your repository deploy keys

Installation

Copy the deploy-local.sh file to wherever you want to run deployments from, probably into the root of your project, probably rename it deploy.sh. Edit the configuration lines at the top of this file to set your servers ssh access details and the directory where you would like the deployment scripts to be installed on the server.

Now run that file with the configure option. This will install the deployment scripts on the server and prompt you to enter details about the project you are deploying like repo url, database connection details, project folder etc.

$ ./deploy.sh configure

Usage

Once you have configured your environment. You can run

$ ./deploy.sh nameofconfigfile

Troubleshooting

The first time you run a deployment, it needs to be run from the server ie. ssh in first, run deploy/deploy.sh. This will ensure you can add github/gitlab/your git service of choice to the list of known hosts.

About

Simple bash deployment script for SilverStripe

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages