added docker up

This commit is contained in:
Nick Yeoman 2023-05-20 10:29:45 -07:00
parent 67b7ccec59
commit 8ab2a67e46
5 changed files with 7 additions and 3 deletions

View File

@ -8,4 +8,4 @@ Make sure the projectName is set correctly, it's very important.
1. cd projectName 1. cd projectName
1. Setup your .env file ```mv env.sample .env``` then edit with your favorite editor. 1. Setup your .env file ```mv env.sample .env``` then edit with your favorite editor.
1. bash bin/new_project.sh 1. bash bin/new_project.sh
1. sudo docker-compose up -d 1. bash bin/docker_up.sh

4
bin/docker_up.sh Normal file
View File

@ -0,0 +1,4 @@
#!/bin/bash
rm -f html/index.html
sudo docker-compose up -d

View File

@ -15,9 +15,9 @@ source .env
set +o allexport set +o allexport
# Run Git setup # Run Git setup
bash bin/new_project/git_setup.sh bash bin/inc_new_project/git_setup.sh
# Run remote Git setup # Run remote Git setup
if [ "$SETGITEA" = "true" ]; then if [ "$SETGITEA" = "true" ]; then
bash bin/new_project/remote_git_setup.sh bash bin/inc_new_project/remote_git_setup.sh
fi fi