Skip to content

Instantly share code, notes, and snippets.

@vanessa
Last active January 10, 2020 20:23
Show Gist options
  • Select an option

  • Save vanessa/ff34f758da93f53cb9ac19e62558b0da to your computer and use it in GitHub Desktop.

Select an option

Save vanessa/ff34f758da93f53cb9ac19e62558b0da to your computer and use it in GitHub Desktop.

Revisions

  1. Vanessa Barreiros renamed this gist Jan 10, 2020. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. Vanessa Barreiros revised this gist Jan 10, 2020. No changes.
  3. Vanessa Barreiros revised this gist Jan 10, 2020. 1 changed file with 2 additions and 4 deletions.
    6 changes: 2 additions & 4 deletions test.sh
    Original file line number Diff line number Diff line change
    @@ -1,14 +1,12 @@
    #!/bin/bash

    PROJECT_NAME=test_boilerplate

    # Archive the boilerplate
    git archive -o boilerplate.zip HEAD
    echo "Created new file named boilerplate.zip"

    # Go back and create a new project using the archived version
    cd ..
    django-admin startproject $PROJECT_NAME \
    django-admin startproject test_boilerplate \
    --extension py,yml,json \
    --name Procfile,README.md,.env.example \
    --template=django-react-boilerplate/boilerplate.zip
    @@ -17,6 +15,6 @@ echo "Started project called $PROJECT_NAME"
    # Delete it and change into the boilerplate folder
    rm django-react-boilerplate/boilerplate.zip
    echo "Removed boilerplate.zip"
    cd $PROJECT_NAME
    cd test_boilerplate

    echo "Done!"
  4. Vanessa Barreiros revised this gist Jan 10, 2020. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion test.sh
    Original file line number Diff line number Diff line change
    @@ -4,14 +4,19 @@ PROJECT_NAME=test_boilerplate

    # Archive the boilerplate
    git archive -o boilerplate.zip HEAD
    echo "Created new file named boilerplate.zip"

    # Go back and create a new project using the archived version
    cd ..
    django-admin startproject $PROJECT_NAME \
    --extension py,yml,json \
    --name Procfile,README.md,.env.example \
    --template=django-react-boilerplate/boilerplate.zip
    echo "Started project called $PROJECT_NAME"

    # Delete it and change into the boilerplate folder
    rm django-react-boilerplate/boilerplate.zip
    cd $PROJECT_NAME
    echo "Removed boilerplate.zip"
    cd $PROJECT_NAME

    echo "Done!"
  5. Vanessa Barreiros revised this gist Jan 10, 2020. 1 changed file with 13 additions and 1 deletion.
    14 changes: 13 additions & 1 deletion test.sh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,17 @@
    #!/bin/bash

    PROJECT_NAME=test_boilerplate

    # Archive the boilerplate
    git archive -o boilerplate.zip HEAD

    # Go back and create a new project using the archived version
    cd ..
    django-admin startproject theprojectname --extension py,yml,json --name Procfile,README.md,.env.example --template=django-react-boilerplate/boilerplate.zip
    django-admin startproject $PROJECT_NAME \
    --extension py,yml,json \
    --name Procfile,README.md,.env.example \
    --template=django-react-boilerplate/boilerplate.zip

    # Delete it and change into the boilerplate folder
    rm django-react-boilerplate/boilerplate.zip
    cd $PROJECT_NAME
  6. Vanessa Barreiros revised this gist Jan 10, 2020. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion test.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    #!/bin/bash

    echo hello
    git archive -o boilerplate.zip HEAD
    cd ..
    django-admin startproject theprojectname --extension py,yml,json --name Procfile,README.md,.env.example --template=django-react-boilerplate/boilerplate.zip
  7. Vanessa Barreiros created this gist Jan 10, 2020.
    3 changes: 3 additions & 0 deletions test.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    #!/bin/bash

    echo hello