GithubHelp home page GithubHelp logo

easy_bash_deployer's Introduction

Easy Bash Deployer

This is a script I wrote when I needed to quickly deploy a site that consisted of a couple JS, CSS, and HTML files and nothing more. What it will do is use YUI to minify all CSS and JS in their respective directories, bundle them up, change all HTML references to point to the new bundle, then SCP the files over to the server of your choice.

Motivation

The main motivation was to freshen up on bash scripting along with hand-writing some automated deployment scripts. I know there are a ton of automated release tools, such as capistrano, but I don't think you can really learn something like automated deployment until you really sit down and have to think through all the scripts/commands that need to run.

Prerequisites

Yahoo YUI Compressor: https://github.com/yui/yuicompressor/downloads

Project Structure

In order to use this deployer, your project should conform to the following structure:

  • ROOT
    • deploy.sh (this script)
    • site
      • js
        • jsfilename.js
      • css
        • cssfilename.css
      • htmlfilename.html
      • htmlfilename.html

You can adjust the paths within the configuration section of the script if you use different extensions or folder names.

Instructions

Copy the deploy.sh file into the root (not site's root).
Adjust configuration at the top of the deploy.sh script.
Run ./deploy.sh from the root.
Enter password when prompted by the remote server.

Feedback

Any and all feedback is always greatly appreciated!

Contributing

Contributions are always welcome. Just fork this repo and submit a pull request. Please make sure you test!

Possible contributions:

  • Refactoring
  • Documentation
  • Bug fixes
  • Unit Tests
  • Integration Tests

License

This software is licensed up the GPLv3. See license for more details.

easy_bash_deployer's People

Watchers

 avatar  avatar

Forkers

newwagner

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.