Skip to content

Commit fd3e22e

Browse files
committed
Fixes #114 Adds production details for setting up prod environment
1 parent 6f45107 commit fd3e22e

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

production.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Production & Deployment
2+
3+
There are multiple ways of deploying this application, please go through the following steps.
4+
5+
1. Set up the loklak_server with the required settings to render via the settings api.
6+
2. Clone the stable tip `git clone https://github.com/loklak/loklak_webclient`
7+
3. `cd loklak_webclient`
8+
4. Set up all the required dependencies using `npm install` in `iframely` , `oauth-proxy` and `loklak_webclient` folders.
9+
5. `gulp prod`
10+
11+
That should get your basic application successfully setup and ready for deployment.
12+
13+
### Using screen sessions
14+
15+
1. `screen -S iframely`
16+
2. In the screen service do `cd iframely`, `node server.js`
17+
3. `cd ..`
18+
4. Detach from screen `^A^D`
19+
5. `screen -S production`
20+
6. `node oauth-proxy/index.js` or `gulp live`
21+
7. Detach from screen `^A^D`
22+
23+
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`
24+
25+
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`

0 commit comments

Comments
 (0)