diff --git a/.gitignore b/.gitignore index e384d62..e372f92 100755 --- a/.gitignore +++ b/.gitignore @@ -41,6 +41,7 @@ postgres/ nohup.out dump.rdb +.env # For when people run yarn in the wrong directory level :-) Got your back homies node_modules/ diff --git a/rebuild.sh b/rebuild.sh index b40d3c0..48a9c62 100755 --- a/rebuild.sh +++ b/rebuild.sh @@ -1,3 +1,5 @@ -conatainername=$1 -docker-compose build --no-cache $conatainername $conatainername -docker-compose up --build --force-recreate --no-deps -d $conatainername \ No newline at end of file +containername=$1 +docker stop $containername +docker rm $containername +docker-compose build --no-cache $containername $containername +docker-compose up --build --force-recreate --no-deps -d $containername