homepage.js/prod.sh

16 lines
344 B
Bash
Raw Normal View History

2023-03-11 16:59:45 +01:00
#!/bin/bash
2023-03-17 10:02:48 +01:00
if [ ! -f .env ]; then
echo "No .env; Please create .env and try again"
exit
fi
. '.env'
2023-03-11 16:59:45 +01:00
cp docker-compose.prod docker-compose.yml
cp Dockerfile.prod Dockerfile
docker-compose build
echo -e "\033[1;32mProduction environment set up successfully\033[0m"
echo -e "Start it up with \033[1;32mdocker-compose up -d\033[0m!\n"