diff --git a/README.md b/README.md index c37dfea..66fb954 100644 --- a/README.md +++ b/README.md @@ -8,4 +8,4 @@ Make sure the projectName is set correctly, it's very important. 1. cd projectName 1. Setup your .env file ```mv env.sample .env``` then edit with your favorite editor. 1. bash bin/new_project.sh -1. sudo docker-compose up -d \ No newline at end of file +1. bash bin/docker_up.sh \ No newline at end of file diff --git a/bin/docker_up.sh b/bin/docker_up.sh new file mode 100644 index 0000000..6725369 --- /dev/null +++ b/bin/docker_up.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +rm -f html/index.html +sudo docker-compose up -d diff --git a/bin/new_project/git_setup.sh b/bin/inc_new_project/git_setup.sh similarity index 100% rename from bin/new_project/git_setup.sh rename to bin/inc_new_project/git_setup.sh diff --git a/bin/new_project/remote_git_setup.sh b/bin/inc_new_project/remote_git_setup.sh similarity index 100% rename from bin/new_project/remote_git_setup.sh rename to bin/inc_new_project/remote_git_setup.sh diff --git a/bin/new_project.sh b/bin/new_project.sh index 3b20e69..2e54409 100644 --- a/bin/new_project.sh +++ b/bin/new_project.sh @@ -15,9 +15,9 @@ source .env set +o allexport # Run Git setup -bash bin/new_project/git_setup.sh +bash bin/inc_new_project/git_setup.sh # Run remote Git setup if [ "$SETGITEA" = "true" ]; then - bash bin/new_project/remote_git_setup.sh + bash bin/inc_new_project/remote_git_setup.sh fi