Skip to content

Commit

Permalink
Update cookiecutter generated files
Browse files Browse the repository at this point in the history
  • Loading branch information
kumaranvpl committed Nov 12, 2024
1 parent 0171afc commit 8aae041
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 3 deletions.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,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
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"
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
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,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
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"
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
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
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"
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 8aae041

Please sign in to comment.