Skip to content

Commit

Permalink
fix: adapt deploy to venv path
Browse files Browse the repository at this point in the history
  • Loading branch information
DireLines committed Dec 19, 2023
1 parent a0fec98 commit 3e9d115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/project/functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ func deployProject() (endpointId string, err error) {
env := mapToApiEnv(createEnvVars(config))
// Construct the docker start command
handlerPath := filepath.Join(remoteProjectPath, config.GetPath([]string{"runtime", "handler_path"}).(string))
activateCmd := fmt.Sprintf(". /runpod-volume/%s/prod/venv/bin/activate", projectId)
activateCmd := fmt.Sprintf(". %s/bin/activate", venvPath)
pythonCmd := fmt.Sprintf("python -u %s", handlerPath)
dockerStartCmd := "bash -c \"" + activateCmd + " && " + pythonCmd + "\""
//deploy new template
Expand Down

0 comments on commit 3e9d115

Please sign in to comment.