Skip to content

Instantly share code, notes, and snippets.

@signalpoint
Last active February 19, 2016 19:06
Show Gist options
  • Select an option

  • Save signalpoint/e828b75914b8c956807b to your computer and use it in GitHub Desktop.

Select an option

Save signalpoint/e828b75914b8c956807b to your computer and use it in GitHub Desktop.

Revisions

  1. signalpoint revised this gist Feb 19, 2016. No changes.
  2. signalpoint revised this gist Feb 9, 2016. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions generate
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,9 @@
    #!/bin/bash

    # @WARNING If you get this error:
    # cp: cannot overwrite non-directory ‘./docs’ with directory ‘../../7/mobile-application/docs’
    # do this: rm /var/www/html/drupalgap.web/daux.io/docs

    clear

    # Generates api docs for DrupalGap 7 and 8.
  3. signalpoint revised this gist Feb 9, 2016. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions generate
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,9 @@
    #!/bin/bash

    # @WARNING If you get this error:
    # cp: cannot overwrite non-directory ‘./docs’ with directory ‘../../7/mobile-application/docs’
    # do this: rm /var/www/html/drupalgap.web/daux.io/docs

    clear

    # Generates api docs for DrupalGap 7 and 8.
  4. signalpoint revised this gist Feb 9, 2016. 2 changed files with 31 additions and 2 deletions.
    14 changes: 12 additions & 2 deletions push
    Original file line number Diff line number Diff line change
    @@ -5,16 +5,26 @@ clear
    echo "==== DRUPALGAP WEB ===="
    git push origin master

    echo "==== DRUPALGAP 8 ===="
    echo "==== DRUPALGAP 8 SDK ===="
    cd 8/app
    git push origin 8.x-1.x
    cd ../..

    echo "==== DRUPALGAP 7 ===="
    echo "==== DRUPALGAP 8 MODULE ===="
    cd 8/modules/contrib/drupalgap
    git push origin 8.x-1.x
    cd ../../../..

    echo "==== DRUPALGAP 7 SDK ===="
    cd 7/mobile-application
    git push origin 7.x-1.x
    cd ../..

    echo "==== DRUPALGAP 7 MODULE ===="
    cd 7/sites/all/modules/contrib/drupalgap
    git push origin 7.x-1.x
    cd ../../../../../..

    echo "==== DAUX.IO ===="
    cd daux.io
    git push origin development
    19 changes: 19 additions & 0 deletions update
    Original file line number Diff line number Diff line change
    @@ -2,11 +2,30 @@

    clear

    echo "==== DRUPALGAP WEB ===="
    git pull origin master

    echo "==== DRUPALGAP 8 SDK ===="
    cd 8/app
    git pull origin 8.x-1.x
    cd ../..

    echo "==== DRUPALGAP 8 MODULE ===="
    cd 8/modules/contrib/drupalgap
    git pull origin 8.x-1.x
    cd ../../../..

    echo "==== DRUPALGAP 7 SDK ===="
    cd 7/mobile-application
    git pull origin 7.x-1.x
    cd ../..

    echo "==== DRUPALGAP 7 MODULE ===="
    cd 7/sites/all/modules/contrib/drupalgap
    git pull origin 7.x-1.x
    cd ../../../../../..

    echo "==== DAUX.IO ===="
    cd daux.io
    git pull origin development
    cd ..
  5. signalpoint revised this gist Feb 9, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions .gitignore
    Original file line number Diff line number Diff line change
    @@ -5,4 +5,5 @@ node_modules
    daux.io
    api
    docs
    demo

  6. signalpoint revised this gist Jan 23, 2016. 1 changed file with 8 additions and 2 deletions.
    10 changes: 8 additions & 2 deletions status
    Original file line number Diff line number Diff line change
    @@ -10,10 +10,16 @@ cd daux.io
    git status
    cd ..

    echo "==== DRUPALGAP 8 ===="
    echo "==== DRUPALGAP 8 SDK ===="
    cd 8/app
    git status
    cd ../..
    echo "==== DRUPALGAP 8 MODULE ===="
    cd ../modules/contrib/drupalgap
    git status
    echo "==== JDRUPAL 8 MODULE ===="
    cd ../jdrupal
    git status
    cd ../../../..

    echo "==== DRUPALGAP 7 ===="
    cd 7/mobile-application
  7. signalpoint revised this gist Jan 23, 2016. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions remote-unzip
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    #!/bin/bash

    cd www
    unzip drupalgap-web.zip
    rm drupalgap-web.zip
  8. signalpoint revised this gist Jan 23, 2016. 7 changed files with 81 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions .gitignore
    Original file line number Diff line number Diff line change
    @@ -3,3 +3,6 @@
    .idea
    node_modules
    daux.io
    api
    docs

    20 changes: 20 additions & 0 deletions deploy
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    #!/bin/bash

    clear

    echo "Zipping up local files..."
    zip drupalgap-web.zip `find docs/ api/ -not -iwholename '*.git*' -print`

    echo "clearing remote web server..."
    ssh [email protected] 'bash -s' < remote-clear

    echo "uploading zip file..."
    scp drupalgap-web.zip [email protected]:~/www

    echo "deleting local zip..."
    rm drupalgap-web.zip

    echo "unzipping remote files..."
    ssh [email protected] 'bash -s' < remote-unzip

    echo "done."
    19 changes: 19 additions & 0 deletions generate
    Original file line number Diff line number Diff line change
    @@ -21,6 +21,7 @@ echo "Generating DrupalGap 7 api... "
    ./node_modules/.bin/jsdoc -c 7/mobile-application/docs/jsdoc.json -r
    mv out/ api/
    cd api
    echo "<?php header('Location: http://api.drupalgap.org/7'); ?>" >> index.php
    mv out 7
    cd ..

    @@ -31,4 +32,22 @@ cd api
    mv out 8
    cd ..

    echo "Generating DrupalGap 7 docs... "
    cp -r daux.io docs/
    mv docs/daux.io docs/7
    cd docs
    echo "<?php header('Location: http://docs.drupalgap.org/7'); ?>" >> index.php
    cd 7
    rm -rf .git/
    cp -r ../../7/mobile-application/docs .
    cd ../..

    echo "Generating DrupalGap 8 docs... "
    cp -r daux.io docs/
    mv docs/daux.io docs/8
    cd docs/8
    rm -rf .git/
    cp -r ../../8/app/docs .
    cd ../..

    echo "Done"
    2 changes: 2 additions & 0 deletions install
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,7 @@
    #!/bin/bash

    clear

    echo "Installing jsdoc..."
    npm install jsdoc

    21 changes: 21 additions & 0 deletions push
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    #!/bin/bash

    clear

    echo "==== DRUPALGAP WEB ===="
    git push origin master

    echo "==== DRUPALGAP 8 ===="
    cd 8/app
    git push origin 8.x-1.x
    cd ../..

    echo "==== DRUPALGAP 7 ===="
    cd 7/mobile-application
    git push origin 7.x-1.x
    cd ../..

    echo "==== DAUX.IO ===="
    cd daux.io
    git push origin development
    cd ..
    4 changes: 4 additions & 0 deletions remote-clear
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    #!/bin/bash

    cd www
    rm -rf api docs
    12 changes: 12 additions & 0 deletions update
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    #!/bin/bash

    clear

    git pull origin master
    cd 8/app
    git pull origin 8.x-1.x
    cd ../..

    cd 7/mobile-application
    git pull origin 7.x-1.x
    cd ../..
  9. signalpoint revised this gist Jan 23, 2016. 3 changed files with 76 additions and 18 deletions.
    34 changes: 34 additions & 0 deletions generate
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,34 @@
    #!/bin/bash

    clear

    # Generates api docs for DrupalGap 7 and 8.

    echo "Removing old folders..."
    if [ -d "docs" ]
    then
    rm -rf docs/
    fi
    if [ -d "api" ]
    then
    rm -rf api/
    fi

    echo "Making docs and api folders..."
    mkdir docs api

    echo "Generating DrupalGap 7 api... "
    ./node_modules/.bin/jsdoc -c 7/mobile-application/docs/jsdoc.json -r
    mv out/ api/
    cd api
    mv out 7
    cd ..

    echo "Generating DrupalGap 8 api... "
    ./node_modules/.bin/jsdoc -c 8/app/docs/jsdoc.json -r
    mv out/ api/
    cd api
    mv out 8
    cd ..

    echo "Done"
    39 changes: 21 additions & 18 deletions install
    100644 → 100755
    Original file line number Diff line number Diff line change
    @@ -1,24 +1,27 @@
    #!/bin/bash

    echo "Installing jsdoc"
    echo "Installing jsdoc..."
    npm install jsdoc

    echo "Installing DrupalGap 7"
    mkdir 7
    cd 7
    git clone --branch 7.x-1.x [email protected]:signalpoint/DrupalGap.git
    echo "Cloning daux.io..."
    git clone --branch development [email protected]:signalpoint/daux.io.git
    mv daux.io docs
    cd docs
    ln -s ../DrupalGap/docs docs

    cd ../..

    echo "Installing DrupalGap 8"
    mkdir 8
    cd 8
    git clone --branch 8.x-1.x [email protected]:signalpoint/DrupalGap.git
    git clone --branch development [email protected]:signalpoint/daux.io.git
    mv daux.io docs
    cd docs
    ln -s ../DrupalGap/docs docs
    #echo "Installing DrupalGap 7"
    #mkdir 7
    #cd 7
    #git clone --branch 7.x-1.x [email protected]:signalpoint/DrupalGap.git
    #git clone --branch development [email protected]:signalpoint/daux.io.git
    #mv daux.io docs
    #cd docs
    #ln -s ../DrupalGap/docs docs
    #
    #cd ../..
    #
    #echo "Installing DrupalGap 8"
    #mkdir 8
    #cd 8
    #git clone --branch 8.x-1.x [email protected]:signalpoint/DrupalGap.git
    #git clone --branch development [email protected]:signalpoint/daux.io.git
    #mv daux.io docs
    #cd docs
    #ln -s ../DrupalGap/docs docs
    21 changes: 21 additions & 0 deletions status
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    #!/bin/bash

    clear

    echo "==== DRUPALGAP WEB ===="
    git status

    echo "==== DRUPALGAP DOCS ===="
    cd daux.io
    git status
    cd ..

    echo "==== DRUPALGAP 8 ===="
    cd 8/app
    git status
    cd ../..

    echo "==== DRUPALGAP 7 ===="
    cd 7/mobile-application
    git status
    cd ../..
  10. signalpoint revised this gist Jan 23, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions .gitignore
    Original file line number Diff line number Diff line change
    @@ -2,3 +2,4 @@
    8
    .idea
    node_modules
    daux.io
  11. signalpoint revised this gist Jan 23, 2016. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions .gitignore
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    7
    8
    .idea
    node_modules
  12. signalpoint created this gist Jan 22, 2016.
    24 changes: 24 additions & 0 deletions install
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    #!/bin/bash

    echo "Installing jsdoc"
    npm install jsdoc

    echo "Installing DrupalGap 7"
    mkdir 7
    cd 7
    git clone --branch 7.x-1.x [email protected]:signalpoint/DrupalGap.git
    git clone --branch development [email protected]:signalpoint/daux.io.git
    mv daux.io docs
    cd docs
    ln -s ../DrupalGap/docs docs

    cd ../..

    echo "Installing DrupalGap 8"
    mkdir 8
    cd 8
    git clone --branch 8.x-1.x [email protected]:signalpoint/DrupalGap.git
    git clone --branch development [email protected]:signalpoint/daux.io.git
    mv daux.io docs
    cd docs
    ln -s ../DrupalGap/docs docs