Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
kdambekalns committed Sep 20, 2024
1 parent 202d36e commit d7ec420
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion assets/project/.localbeach.docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
networks:
local_beach:
external: true
name: local_beach

services:
webserver:
Expand Down
2 changes: 1 addition & 1 deletion cmd/beach/cmd/pause.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func init() {

func handlePauseRun(cmd *cobra.Command, args []string) {
log.Info("Pausing reverse proxy and database server ...")
commandArgs := []string{"compose", "-f", path.Base + "compose.yaml", "stop", "webserver", "database"}
commandArgs := []string{"compose", "-f", path.Base + "compose.yaml", "-p", "LocalBeach", "stop", "webserver", "database"}
output, err := exec.RunCommand("nerdctl", commandArgs)
if err != nil {
log.Fatal(output)
Expand Down
2 changes: 1 addition & 1 deletion cmd/beach/cmd/resume.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func init() {

func handleResumeRun(cmd *cobra.Command, args []string) {
log.Info("Starting reverse proxy and database server ...")
commandArgs := []string{"compose", "-f", path.Base + "compose.yaml", "start", "webserver", "database"}
commandArgs := []string{"compose", "-f", path.Base + "compose.yaml", "-p", "LocalBeach", "start", "webserver", "database"}
output, err := exec.RunCommand("nerdctl", commandArgs)
if err != nil {
log.Fatal(output)
Expand Down
2 changes: 1 addition & 1 deletion cmd/beach/cmd/setup-https.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func handleSetupHttpsRun(cmd *cobra.Command, args []string) {

if !strings.Contains(statusOutput, "local_beach_nginx") {
log.Info("Restarting reverse proxy ...")
commandArgs = []string{"compose", "-f", path.Base + "compose.yaml", "restart"}
commandArgs = []string{"compose", "-f", path.Base + "compose.yaml", "-p", "LocalBeach", "restart"}
output, err := exec.RunCommand("nerdctl", commandArgs)
if err != nil {
log.Fatal(output)
Expand Down

0 comments on commit d7ec420

Please sign in to comment.