Update README.md

This commit is contained in:
Akilan Selvacoumar
2020-05-10 13:15:43 +05:30
committed by GitHub
parent a564ecff48
commit 625839ce55

View File

@@ -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