Skip to content

Commit

Permalink
Add few echo lines and dockerignore file (#33)
Browse files Browse the repository at this point in the history
* Add line to echo nginx config

* Add .dockerignore file

* Add echo at relevant places
  • Loading branch information
kumaranvpl authored Nov 12, 2024
1 parent 9130678 commit aaa589e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion {{cookiecutter.project_slug}}/scripts/build_docker.sh
Original file line number Diff line number Diff line change
@@ -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"
3 changes: 3 additions & 0 deletions {{cookiecutter.project_slug}}/scripts/deploy_to_fly_io.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit aaa589e

Please sign in to comment.