Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mpiorowski committed Oct 25, 2024
1 parent 462a23c commit f99f177
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,20 @@ Go to the [Releases](https://github.com/gofast-live/gofast-cli/releases) page an
#### Linux

```bash
wget https://github.com/gofast-live/gofast-cli/releases/download/v0.8.0/gofast-linux-amd64 -O /usr/local/bin/gofast
wget https://github.com/gofast-live/gofast-cli/releases/download/v0.9.0/gofast-linux-amd64 -O /usr/local/bin/gofast
chmod +x /usr/local/bin/gofast
```

#### macOS

```bash
wget https://github.com/gofast-live/gofast-cli/releases/download/v0.8.0/gofast-darwin-amd64 -O /usr/local/bin/gofast
wget https://github.com/gofast-live/gofast-cli/releases/download/v0.9.0/gofast-darwin-amd64 -O /usr/local/bin/gofast
chmod +x /usr/local/bin/gofast
```

#### Windows

```bash
curl -L -o gofast.exe https://github.com/gofast-live/gofast-cli/releases/download/v0.8.0/gofast-windows-amd64.exe
curl -L -o gofast.exe https://github.com/gofast-live/gofast-cli/releases/download/v0.9.0/gofast-windows-amd64.exe
move gofast.exe C:\Windows\System32
```
8 changes: 8 additions & 0 deletions cmd/gofast/cleaning.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,14 @@ func cleaning(projectName string, protocol string, client string, start string,
docker_compose_file_str = strings.ReplaceAll(docker_compose_file_str, "EMAIL_PROVIDER: local", "EMAIL_PROVIDER: resend")
docker_compose_file_str = strings.ReplaceAll(docker_compose_file_str, "# RESEND_API_KEY: ${RESEND_API_KEY}", "RESEND_API_KEY: ${RESEND_API_KEY}")
run_cmd = append(run_cmd, "RESEND_API_KEY=__CHANGE_ME__ \\")
} else if emailProvider == "AWS SES" {
docker_compose_file_str = strings.ReplaceAll(docker_compose_file_str, "EMAIL_PROVIDER: local", "EMAIL_PROVIDER: ses")
docker_compose_file_str = strings.ReplaceAll(docker_compose_file_str, "# SES_REGION: ${SES_REGION}", "SES_REGION: ${SES_REGION}")
docker_compose_file_str = strings.ReplaceAll(docker_compose_file_str, "# SES_ACCESS_KEY: ${SES_ACCESS_KEY}", "SES_ACCESS_KEY: ${SES_ACCESS_KEY}")
docker_compose_file_str = strings.ReplaceAll(docker_compose_file_str, "# SES_SECRET_KEY: ${SES_SECRET_KEY}", "SES_SECRET_KEY: ${SES_SECRET_KEY}")
run_cmd = append(run_cmd, "SES_REGION=__CHANGE_ME__ \\")
run_cmd = append(run_cmd, "SES_ACCESS_KEY=__CHANGE_ME__ \\")
run_cmd = append(run_cmd, "SES_SECRET_KEY=__CHANGE_ME__ \\")
}

// Files
Expand Down
2 changes: 1 addition & 1 deletion cmd/gofast/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func initialModel() model {
selectedDatabase: "SQLite",
paymentsProviders: []string{"Local (mock)", "Stripe", "Lemon Squeezy"},
selectedPaymentsProvider: "Local (mock)",
emailsProviders: []string{"Local (log)", "Postmark", "Sendgrid", "Resend"},
emailsProviders: []string{"Local (log)", "Postmark", "Sendgrid", "Resend", "AWS SES"},
selectedEmailProvider: "Local (log)",
filesProviders: []string{"Local (folder)", "Cloudflare R2", "AWS S3", "Google Cloud Storage"},
selectedFilesProvider: "Local (folder)",
Expand Down

0 comments on commit f99f177

Please sign in to comment.