Coder Social home page Coder Social logo

bedrock-and-sage-deploy's Introduction

Bedrock and Sage Theme Deploy Script

Usage

Clone this repo into the root of your Bedrock project or add it as a submodule. git clone [email protected]:duanecilliers/Bedrock-and-Sage-Deploy.git deploy or git submodule add [email protected]:duanecilliers/Bedrock-and-Sage-Deploy.git deploy

You need to export the following variables STAGING_REMOTE_HOST, STAGING_REMOTE_PATH, PRODUCTION_REMOTE_HOST, PRODUCTION_REMOTE_PATH and THEME_DIR.

EG: export STAGING_REMOTE_HOST=user@host

To deploy run ./deploy/deploy.sh from the root of your project. You will be prompted to choose an environment to deploy to.

Alternatively you can pass an environment flag ./deploy/deploy.sh --staging or ./deploy/deploy.sh --production.

Examples

Running from local machine

export STAGING_REMOTE_HOST=user@host \
  STAGING_REMOTE_PATH=/path/to/web/root/ \
  PRODUCTION_REMOTE_HOST=user@host \
  PRODUCTION_REMOTE_PATH=/path/to/web/root/ \
  THEME_DIR=web/app/themes/theme_name

./deploy/deploy.sh

Running from Bitbucket pipelines

Export the environment variables inside your bitbucket-pipelines.yml file.

- export STAGING_REMOTE_HOST=user@host
- export STAGING_REMOTE_PATH=/path/to/web/root/
- export PRODUCTION_REMOTE_HOST=user@host
- export PRODUCTION_REMOTE_PATH=/path/to/web/root/
- export THEME_DIR=web/app/themes/theme_name
- ./scripts/deploy.sh --staging

bedrock-and-sage-deploy's People

Contributors

duanecilliers avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

serguk89

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.