feat: logs command in prod script (#1934)

This commit is contained in:
Shubham Palriwala
2024-01-22 14:47:06 +05:30
committed by GitHub
parent c89d030222
commit 7059d3843d
3 changed files with 13 additions and 6 deletions
@@ -29,7 +29,7 @@ Copy and paste the following command into your terminal:
<CodeGroup title="Single Command to deploy Formbricks">
```bash
curl -fsSL https://raw.githubusercontent.com/formbricks/formbricks/main/docker/production.sh -o formbricks.sh && chmod +x formbricks.sh && ./formbricks.sh install
curl -fsSL https://raw.githubusercontent.com/formbricks/formbricks/main/docker/formbricks.sh -o formbricks.sh && chmod +x formbricks.sh && ./formbricks.sh install
```
</CodeGroup>
@@ -219,18 +219,16 @@ The script will automatically stop all the Formbricks related containers, remove
## Debugging
If you encounter any issues, you can check the logs of the container with:
If you encounter any issues, you can check the logs of the containers with:
<Col>
<CodeGroup title="Check logs of the container">
```bash
cd formbricks && docker compose logs -f
./formbricks.sh logs
```
</CodeGroup>
</Col>
You can close the logs again with `CTRL + C`.
## Troubleshooting
+1 -1
View File
@@ -15,7 +15,7 @@ Before you proceed, make sure you have the following:
Copy and paste the following command into your terminal:
```bash
/bin/sh -c "$(curl -fsSL https://raw.githubusercontent.com/formbricks/formbricks/main/docker/production.sh)"
/bin/sh -c "$(curl -fsSL https://raw.githubusercontent.com/formbricks/formbricks/main/docker/formbricks.sh)"
```
The script will prompt you for the following information:
@@ -248,6 +248,12 @@ restart_formbricks() {
echo "🎉 Formbricks restarted successfully!"
}
get_logs() {
echo "📃 Getting Formbricks logs..."
cd formbricks
sudo docker compose logs
}
case "$1" in
install)
install_formbricks
@@ -261,6 +267,9 @@ stop)
restart)
restart_formbricks
;;
logs)
get_logs
;;
uninstall)
uninstall_formbricks
;;