Add one-click install script for project #10
Merged
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.
The featureService is not super easy to set up: one must install postgres, postgis, populate the database, install the node service, etc. As such, it's worth automating the process to make it easier to set up a
new instance of the featureService; that's what the new
install.shscript does.The script installs postgres and the featureService app on the same host so that we don't have to manage multiple servers for the database and application layers. The featureService is exposed over port 80 so that postgres's port can be hidden in the firewall and we don't have to worry about securing the database.
An alternative to the
install.shscript that I considered was using Docker. However, Azure Web Apps for Linux doesn't seem to support docker-compose yet and it would be an anti-pattern to have a single Docker image that contains the database and the application. So for now, the good-old bash script to set up a new machine will have to do.