Update README.md
This commit is contained in:
committed by
GitHub
parent
a564ecff48
commit
625839ce55
24
README.md
24
README.md
@@ -44,6 +44,30 @@ File Structure:
|
|||||||
- Theme2
|
- 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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user