forked from titaniumnetwork-dev/Ultraviolet-Node-Archive
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request titaniumnetwork-dev#27 from Rockpods/main
BetterReplit and Readme
- Loading branch information
Showing
3 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
language = "nodejs" | ||
run = "bash main.sh" | ||
run = "./main.sh" | ||
onBoot = "chmod u+x main.sh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,13 @@ | ||
git submodule update --init | ||
npm start | ||
#!/bin/bash | ||
# Set this to 1 to automatically attempt a fix when an error occurs while running npm start. | ||
fix=0 | ||
|
||
|
||
# Stuff to do at first run(submodule, npm install). | ||
if [[ -d "static" && -n "$(find static -prune -empty 2>/dev/null)" ]] || [[ ! -d "static" ]]; then | ||
npm install | ||
git submodule update --init --recursive | ||
fi | ||
|
||
|
||
npm start || [[ $fix = 1 ]] && npm install && npm update && git submodule update --init --recursive |