https://claude.ai/share/32da51b2-3c60-4144-b92f-c83394c0e7ec
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## πΉ Vim Modes (most important concept) | |
| - `i` β Insert mode (start typing) | |
| - `Esc` β Back to Normal mode (always your safe key) | |
| - `:` β Command mode | |
| - `v` β Visual mode (select text) | |
| ------ | |
| ## πΉ File Commands |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Local testing version of deploy script | |
| # This simulates the deployment without actually pulling from git | |
| set -e | |
| BRANCH=$1 | |
| if [ -z "$BRANCH" ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Test Development Setup: | |
| # Test dev compose file | |
| docker-compose -f docker-compose.dev.yml up --build | |
| # In another terminal, test endpoints | |
| curl http://localhost:8001/health | |
| curl http://localhost:8001/docs | |
| # Check logs in real-time | |
| docker-compose -f docker-compose.dev.yml logs -f |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Ubuntu | |
| sudo apt update -y | |
| # Install Docker | |
| https://docs.docker.com/engine/install/ubuntu/ | |
| # Install Docker Compose | |
| sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
| sudo chmod +x /usr/local/bin/docker-compose |