Parcourir la source

Updated Readme with details of how to move code to production

rota3015 il y a 8 mois
Parent
commit
df8330c8ce
1 fichiers modifiés avec 11 ajouts et 0 suppressions
  1. 11 0
      README.md

+ 11 - 0
README.md

@@ -21,3 +21,14 @@ To get involved, [contact MEDLab](mailto:medlab@colorado.edu).
 3. Install project dependencies with `bundle install`
 4. Run the webserver with `bundle exec jekyll serve`
 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/