-
-
Save wiber/3b634f39c81ef00e6c46 to your computer and use it in GitHub Desktop.
c9 script to run in workspace/github or ./github
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TEST=$(pwd) | |
echo $TEST | |
username="$1" | |
organisation="$2" | |
folderName=$organisation | |
echo $folderName | |
# not hashrepublic here, that's the name of workspace, curious | |
homeDir=$TEST | |
#"/home/ubuntu/workspace/github" | |
packageDir="$homeDir/$folderName/packages" | |
appPackDir="$homeDir/hashrepublic/Tapmate" | |
echo $username | |
echo $folderName | |
echo $homeDir | |
echo $packageDir | |
echo $appPackDir | |
cd $homeDir | |
echo $PWD | |
rm -rf $folderName | |
mkdir $folderName | |
git config user.name $username | |
rm -rf hashrepublic | |
cd $folderName | |
#clone all the packages repos | |
mkdir packages | |
cd packages | |
git clone https://$username@github.com/$organisation/youiest-big.git youiest:big | |
git clone https://$username@github.com/$organisation/follows.git youiest:follow | |
git clone https://$username@github.com/$organisation/youiest-unionize.git youiest:unionize | |
cd youiest:unionize | |
git checkout trini | |
cd .. | |
git clone https://$username@github.com/$organisation/youiest-feed.git youiest:feed | |
git clone https://$username@github.com/$organisation/Youiest-votes.git youiest:vote | |
git clone https://$username@github.com/$organisation/youiest-recommend.git youiest:recommend | |
echo $PWD | |
echo $packageDir | |
echo 'should be the same!' | |
#clone the app repo | |
git config user.name $username | |
cd .. | |
git clone https://$username@github.com/wiber/hashrepublic.git hashrepublic | |
cd hashrepublic | |
cd Tapmate | |
rm -rf packages | |
echo $PWD | |
echo $packageDir | |
echo $appPackDir | |
ln -s $packageDir $PWD | |
meteor --port $PORT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment