Skip to content
Deployscript SMDB site
Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
01-build.sh
02-archive.sh
03-deploy.sh
README.md
config.example
run.sh

README.md

SMDB Deployment script

Basic Laravel deployment script for the SMDB site. But it should be usable for every Laravel based site at the moment.

What is does:

  • Clones the GIT master branch
  • Installs PHP packages
  • Installs NPM packages
  • Compile assets
  • Cleanup unused files in production (sass, uncompiled js etc)
  • Archive & Upload
  • Put site down
  • Overwrite files
  • Run migrations
  • Put site back online

Installation

  • Rename config.example to config
  • Edit the config (for options see below)
  • Run run.sh to start the deployment

Settings

  • git: URL to your Git repository
  • branch: Git deployment branch
  • dirname: Desired build directory name (local) and archive name
  • host: SSH username and hostname
  • remote_appdir: Application directory on your server
  • remote_builddir: Destination directory for the uploaded build archive

Todo

  • Run tests
  • Atomic deployment
  • Cleanup builds (local and remote)
You can’t perform that action at this time.