fix: resolve setup script configuration issues (#59)#86
Open
muhizipen wants to merge 1 commit intobos-com:mainfrom
Open
fix: resolve setup script configuration issues (#59)#86muhizipen wants to merge 1 commit intobos-com:mainfrom
muhizipen wants to merge 1 commit intobos-com:mainfrom
Conversation
- Added create_env_file function to handle .env creation from env.example - Created start.sh script to launch the application - Created stop.sh script to gracefully shutdown - Created restart.sh script for quick restarts - Updated main() to call create_env_file Closes bos-com#59
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR fixes two issues in the GreenCode setup script.
Issue 1: .env file not created
setup.shhad no logic to create.envfromenv.examplecreate_env_file()function that:env.exampleor.env.example.envfile automaticallyIssue 2: Missing start/stop/restart scripts
setup.shreferenced scripts that didn't existscripts/start.shscripts/stop.shscripts/restart.shFiles Changed
scripts/setup.shscripts/start.shscripts/stop.shscripts/restart.shTesting Performed
./scripts/setup.shcreates.envfromenv.example.envmissingRelated Issue
Closes #59
Checklist
chmod +x)