Skip to content

Commit

Permalink
Add message for infrastructure URL
Browse files Browse the repository at this point in the history
  • Loading branch information
pratishshr committed Oct 23, 2019
1 parent be2fbad commit adf7f7c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cli/internals/deploy/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ func Run(environment string) {
frontend.Deploy(project, environment)
}

slack.Notify(project.SlackURL, fmt.Sprintf("*%s* succesfully deployed to *%s*.", project.Name, environment), "#04EBB8")
slack.Notify(project.SlackURL, fmt.Sprintf(" 🎉 🎉 🎉 *%s* succesfully deployed to *%s*. 🎉 🎉 🎉", project.Name, environment), "#04EBB8")
}
4 changes: 4 additions & 0 deletions cli/internals/env/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (

"github.com/leapfrogtechnology/shift/core/services/storage"
"github.com/leapfrogtechnology/shift/core/structs"
"github.com/leapfrogtechnology/shift/core/utils/logger"
"github.com/leapfrogtechnology/shift/infrastructure/internals/initialize"
)

Expand Down Expand Up @@ -34,4 +35,7 @@ func Run() {
storage.Save(project)

deploy.Run(environment)

logger.Info("Project Deployed At: " + infraInfo.URL)
logger.Info("⏳ Stay put. It might take some time for the changes to be reflected. ⏳")
}
4 changes: 4 additions & 0 deletions cli/internals/setup/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"github.com/leapfrogtechnology/shift/core/services/platforms/aws"
"github.com/leapfrogtechnology/shift/core/services/storage"
"github.com/leapfrogtechnology/shift/core/structs"
"github.com/leapfrogtechnology/shift/core/utils/logger"
"github.com/leapfrogtechnology/shift/infrastructure/internals/initialize"
)

Expand Down Expand Up @@ -213,4 +214,7 @@ func Run() {

// 3. Deploy to created infrastructure.
deploy.Run(deploymentDetails.Environment)

logger.Info("Project Deployed At: " + infraInfo.URL)
logger.Info("⏳ Stay put. It might take some time for the changes to be reflected. ⏳")
}

0 comments on commit adf7f7c

Please sign in to comment.