./test.sh
./run.sh
./build.sh
./deploy_all.sh
This will create zip files under artifact for all platforms, select your platform and move the zip to the server. Unzip the file and run the install.sh on the server.
sudo ./install.sh
It will start up on install.
Linux
sudo service popmedia-server-service start
Mac
sudo launchctl load /Library/LaunchDaemons/com.popmedic.go-popmedia.plist
Linux
sudo service popmedia-server-service stop
Mac
sudo launchctl unload /Library/LaunchDaemons/com.popmedic.go-popmedia.plist
Linux
sudo service popmedia-server-service restart
Mac
sudo launchctl unload /Library/LaunchDaemons/com.popmedic.go-popmedia.plist && \
sudo launchctl load /Library/LaunchDaemons/com.popmedic.go-popmedia.plist
Edit file server/config.json
with the desired settings.
- Port = port to run on.
- Root = root location of site.
- Host = the name of your host.
- DirectoryImage = the path to the image to use for a directory if a custom image does not exist.
- FileImage = the path to the image to use for a file if a custom image does not exist.
- LogFile = file to log to, will log to console if none is provide (if you installed as above you will not ever see logs if you don't set this.)
- MediaExt = currently only support MP4