Fix/install procedures #600
Draft
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.
Note, this change was originally here:
#589
However, there was a problem on the /profile page upon installation and attempted hosting on kconfs.com/brierfoxforecast.com for unknown reasons.
From @ntoufoudis
What changed:
Running ./SocialPredict without any command, or with an invalid command, will print some basic help message.
Running any valid ./SocialPredict command except install, will check if the .env file is present. If it is not, it will advise to run ./SocialPredict install to initialize the app and then exit.
Running ./SocialPredict install, will force user to perform a clean install. That means it will ask to re-create the .env file, and remove the db files. If user denies any of the above, the script will fail.
The ./SocialPredict install command now accepts some arguments:
For -e acceptable values are development, localhost, production. Running the script with the above arguments, will force re-creation of .env and db files, and is only meant to be used by the ansible deployment procedures. It is not safe for usage by end user.
There has been a lot of refactoring and clean up in the scripts regarding the installation procedure.