There are multiple ways of deploying this application, please go through the following steps.
- Set up the loklak_server with the required settings to render via the settings api.
- Clone the stable tip
git clone https://github.com/loklak/loklak_webclient cd loklak_webclient- Set up all the required dependencies using
npm installiniframely,oauth-proxyandloklak_webclientfolders. gulp prod
That should get your basic application successfully setup and ready for deployment.
screen -S iframely- In the screen service do
cd iframely,node server.js cd ..- Detach from screen
^A^D screen -S productionnode oauth-proxy/index.jsorgulp live- Detach from screen
^A^D
If you have your own web server engine, you can use the build/ created by gulp prod to serve the created file statically but then make sure that the oauth proxy is running the service at the oauthProxyPort
When there is a need to change default port oauthProxyUrl, oauthProxyRedirectUrl, oauthProxyPort should have the same port. The port to the application can be change at gulpDevExpressPort