move snapp to /usr/local/bin. rename from snapp.sh to snapp. ammend readme.

pull/2/head
necro-nemesis 4 years ago
parent 4631b9bf25
commit cd77e6eec4

@ -90,11 +90,11 @@ SNApps are placed in the /home/$USER/snapp directory "$USER" being substituted b
## Starting and Stopping the Webserver
SNApp-PI-HOST uses the utility "screen" and the script "snapp.sh" found in /home/$USER/snapp to run the server. If the server is running the terminal command ```screen -r snapp``` will open up the terminal screen showing it running and reporting requests. To stop the server use ```Ctrl C``` while in this terminal screen. Restarting the webserver is done by running the snapp script with ```sudo ./snapp.sh```. This will create the snapp screen again and run the service even if you exit terminal as the screen the webserver runs in is now "detached". If you are uncertain if the webserver is running ```screen -ls``` will reveal any screens running in the background. Lastly if you wish to detach fro the screen and leave it running ```Ctrl A D``` will detach and leave the webserver runnning.
SNApp-PI-HOST uses the utility "screen" and the script "snapp" found in /usr/local/bin to run the server. If the server is running the terminal command ```screen -r snapp``` will open up the terminal screen showing it running and reporting requests. To stop the server use ```Ctrl C``` while in this terminal screen. Restarting the webserver is done by running the snapp script with ```snapp```. This will create the snapp screen again and run the service even if you exit terminal as the screen the webserver runs in is now "detached". If you are uncertain if the webserver is running ```screen -ls``` will reveal any screens running in the background. Lastly if you wish to detach fro the screen and leave it running ```Ctrl A D``` will detach and leave the webserver runnning.
## Selection of Ports
The default port is set to ```80```. This value can be found and changed in the ```snapp.sh``` script. Changing the value will change the port the webserver uses. If you change the port number ensure that you forward that port through your router as well.
The default port is set to ```80```. This value can be found and changed in the ```snapp``` script. Changing the value will change the port the webserver uses. If you change the port number ensure that you forward that port through your router as well.
## Support us

@ -115,6 +115,7 @@ function change_file_ownership() {
install_log "Changing file ownership in SNApp directory"
sudo chown -R $username:$username "$snapp_dir" || install_error "Unable to change file ownership for 'snapp_dir'"
sudo chmod -R 0755 "$snapp_dir" || install_error "Unable to change permissions for 'snapp_dir'"
sudo mv $snapp_dir/snapp /usr/local/bin
}
function install_complete() {

Loading…
Cancel
Save