|
@@ -21,3 +21,14 @@ To get involved, [contact MEDLab](mailto:medlab@colorado.edu).
|
|
3. Install project dependencies with `bundle install`
|
|
3. Install project dependencies with `bundle install`
|
|
4. Run the webserver with `bundle exec jekyll serve`
|
|
4. Run the webserver with `bundle exec jekyll serve`
|
|
5. View your site locally at [https://localhost:4000]](https://localhost:4000)
|
|
5. View your site locally at [https://localhost:4000]](https://localhost:4000)
|
|
|
|
+
|
|
|
|
+# Running on cloudrun environment
|
|
|
|
+1. In order to build use the above procedure and it will create an _site folder
|
|
|
|
+2. We need to replace this folder in cloudrun environment /app/data/public/ under _site folder
|
|
|
|
+3. For Frontend the server is Apache which is responsible for delivering the htmls
|
|
|
|
+4. In order to make the apache deliver made following changes in app.conf which will redirect the backend calls to the 3000 port where our code is running. Frontend is making calls to backend on :3000 port on local host hence following are the lines we changed in /app/data/apache/app.conf
|
|
|
|
+ ProxyPass /api http://localhost:3000/api
|
|
|
|
+ ProxyPassReverse /api http://localhost:3000/api
|
|
|
|
+
|
|
|
|
+ Alias / /app/data/public/_site/
|
|
|
|
+ Alias /templates/ /app/data/public/_site/templates/
|