Giter Site home page Giter Site logo

create-project's Introduction

Create project

Bash script for quickly creating a new Drupal project

Currently supported features

  • Creates a new Drupal project, database and Apache vhost file
  • List all projects inside a folder
  • Removes the project files, database and Apache vhost file

Installation & usage

You install the script by placing it into a folder, that is also in your system $PATH, on your server and then calling it, preferably with a help of an alias.

Recommended installation

Step by step instructions on how to install this script to your server. Ofcourse you can put it anywhere you wish and use it however you like.

First connect to your server via ssh.

# Go to your home directory
cd ~

# Create a folder if it doesnt exist already
mkdir .bin
chmod a+ .bin

# Install the script inside this folder
cd .bin
wget https://raw.githubusercontent.com/AGILEDROP/create-project/master/create-project.sh
chmod u+x create-project.sh

And thats it. Now you can simply call the script like so

sudo bash ~/.bin/create-project.sh

We can also create an alias for this for easier access. To do so we need to add the following line to our .profile file which should already be inside our home directory.

alias create-project='sudo bash ~/.bin/create-project.sh'

After that save the file, exit the editor and make sure your current session recognizes the new alias.

source .profile

Usage

After installing it from the above instructions you can now use your new Drupal project creating. Use the -h or --help argument to show options.

create-project -h

TO-DO

  • List function
  • Remove function
  • Change owner:group of the files
  • Update README.md file for better installation and usage instructions
  • Initialize a git repository on creating a new project
  • Bitbucket integrations to create a new repository
  • Jenkins integration to create a build task

create-project's People

Contributors

alecsmrekar avatar

Watchers

 avatar

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.