Skip to content

Commit

Permalink
return to pop out from server
Browse files Browse the repository at this point in the history
  • Loading branch information
tfhuhtal committed Sep 3, 2024
1 parent 3d3848e commit ee007cc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/feature_branches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:

- name: seed db
run: docker exec lomake_dev bash -c "node server/index.js seed"

- name: Run cypress tests with retry
uses: nick-fields/retry@v3
with:
Expand Down
9 changes: 5 additions & 4 deletions server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,20 @@ if (inProduction || inStaging) {
server.listen(PORT, async () => {
await initializeDatabaseConnection()

// if there is a argument and return
if (process.argv[2]) {
switch (process.argv[2]) {
case 'seed':
await seed()
break
return
case 'getUserList':
await getUserList()
break
return
case 'generateMissingTempAnswers':
await createTempAnswers()
break
return
default:
break
return
}
}

Expand Down

0 comments on commit ee007cc

Please sign in to comment.