From 625839ce55815f6abc331c80e8d0a7964cdc68a6 Mon Sep 17 00:00:00 2001 From: Akilan Selvacoumar <31743758+Akilan1999@users.noreply.github.com> Date: Sun, 10 May 2020 13:15:43 +0530 Subject: [PATCH] Update README.md --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index 53be31f..ab9ac39 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,30 @@ File Structure: - Theme2 ```` +### Deployment dev : +When the backend dev calls deploy must run the following bash script. + +if it's a new repo +```console +#!/bin/sh +reponame="$1" +if [ "$reponame" = "" ]; then +read -p "Enter Github Repository Name: " reponame +fi +mkdir ./$reponame +cd $reponame +curl -u USERNAME https://api.github.com/user/repos -d "{\"name\":\"$reponame\"}" +git init +echo "ADD README CONTENT" > README.md +git add README.md +git commit -m "Starting Out" +git remote add origin git@github.com:USERNAME/$reponame.git +git push -u origin master + +```console + + +