diff --git a/{{cookiecutter.project_slug}}/.dockerignore b/{{cookiecutter.project_slug}}/.dockerignore new file mode 100644 index 0000000..e69de29 diff --git a/{{cookiecutter.project_slug}}/docker/content/run_fastagency.sh b/{{cookiecutter.project_slug}}/docker/content/run_fastagency.sh index ffd7525..b1e5ca8 100755 --- a/{{cookiecutter.project_slug}}/docker/content/run_fastagency.sh +++ b/{{cookiecutter.project_slug}}/docker/content/run_fastagency.sh @@ -20,6 +20,7 @@ do sed -i "5i\ server 127.0.0.1:$PORT;" nginx.conf.template done envsubst '${MESOP_PORT}' < nginx.conf.template >/etc/nginx/conf.d/default.conf +echo "Nginx config:" cat /etc/nginx/conf.d/default.conf # Start nginx diff --git a/{{cookiecutter.project_slug}}/scripts/build_docker.sh b/{{cookiecutter.project_slug}}/scripts/build_docker.sh index fc83d0c..47a834b 100755 --- a/{{cookiecutter.project_slug}}/scripts/build_docker.sh +++ b/{{cookiecutter.project_slug}}/scripts/build_docker.sh @@ -1,3 +1,5 @@ #!/bin/bash -docker build -t deploy_fastagency -f docker/Dockerfile --progress plain . +echo -e "\033[0;32mBuilding fastagency docker image\033[0m" +docker build -t deploy_fastagency -f docker/Dockerfile --progress plain . && \ +echo -e "\033[0;32mSuccessfully built fastagency docker image\033[0m" diff --git a/{{cookiecutter.project_slug}}/scripts/deploy_to_fly_io.sh b/{{cookiecutter.project_slug}}/scripts/deploy_to_fly_io.sh index 3d557d1..46e58ff 100755 --- a/{{cookiecutter.project_slug}}/scripts/deploy_to_fly_io.sh +++ b/{{cookiecutter.project_slug}}/scripts/deploy_to_fly_io.sh @@ -1,7 +1,10 @@ #!/bin/bash +echo -e "\033[0;32mLogging into fly.io\033[0m" fly auth login +echo -e "\033[0;32mDeploying to fly.io\033[0m" fly launch --config fly.toml --copy-config --yes +echo -e "\033[0;32mSetting secrets\033[0m" fly secrets set OPENAI_API_KEY=$OPENAI_API_KEY