-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
조성재 edited this page Mar 8, 2020
·
9 revisions
Check the security issues before installation.
- Clone to /home/pi.
/home/pi$ git clone https://github.com/rubycho/webpi /home/pi$ cd webpi - Check environment variables.
/home/pi/webpi$ vi .envs/.env.prod # do something - And run the following:
Installation may take minutes to complete.
/home/pi/webpi$ .script/install.sh
- API is now available on port 8080.
Below operations are done to enable webpi on apache2.
- Append
. /home/pi/webpi/.envs/.env.prodon/etc/apache2/envvarsto set environment variables. - Copy
.prod/webpi.confon/etc/apache2/sites-available. - Ensite webpi and restart apache2.
You can use webpi-app(SPA Client) to communicate with your installed WebPI. Check the repository.
You'll need to edit CORS_ORIGIN_WHITELIST on .envs/.env.prod and restart the WebPI.