Skip to content

Commit

Permalink
Update from Git on startup as Replit does not have a persistent FS
Browse files Browse the repository at this point in the history
khrj committed Mar 19, 2021
1 parent e2e124f commit e2a8ae9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions daemon/daemon.go
Original file line number Diff line number Diff line change
@@ -18,6 +18,12 @@ func main() {
isStandalone, args := parseArgs()
cmd = buildCmd(args, isStandalone)

err := update.UpdateGitFromRemote()

if err != nil {
logger.Warn("Failed to fetch from GitHub on startup, make sure git is set up")
}

if isStandalone {
err := cmd.Start()
logger.Success(statProgramStart)

1 comment on commit e2a8ae9

@vercel
Copy link

@vercel vercel bot commented on e2a8ae9 Mar 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.