Skip to content
This repository has been archived by the owner on Feb 5, 2021. It is now read-only.

Commit

Permalink
Updated docker-compose and README
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumev committed Nov 15, 2018
1 parent 356f787 commit 77ca396
Show file tree
Hide file tree
Showing 6 changed files with 200 additions and 128 deletions.
10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
* Clone repo `git clone git@github.com:UN-OCHA/hid_app2.git`
* In the app directory `cd hid_app2`
* Switch to the dev branch `git checkout dev`
* Install node modules `npm install`
* Install Bower modules `bower install`
* Install node modules with yarn `yarn install`
* Add the local url to your hosts file:
on Mac: `sudo vi /etc/hosts`
Add `127.0.0.1 app.hid.vm`
Expand All @@ -28,13 +27,8 @@ Add `127.0.0.1 app.hid.vm`

### Running the app

* If you are using Docker for Mac you will need to add ports to docker-compose.yml
```
ports:
- 80:80
```
* `docker-compose up`
* visit [http://app.hid.vm](http://app.hid.vm)
* visit [https://app.hid.vm](https://app.hid.vm) and accept the SSL certificate exception

## Deployment

Expand Down
7 changes: 2 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
app:
image: unocha/alpine-base-nginx
environment:
DNSDOCK_NAME: app
DNSDOCK_IMAGE: hid
volumes:
- ./dist:/srv/www/html
- ./conf/nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./conf/nginx/ssl:/etc/nginx/ssl
hostname: app.hid.vm
# hostname: app.hid.vm
ports:
- 80:80
- 443:443
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@
"@bower_components/jquery": "jquery/jquery-dist#1.9.1 - 3",
"@bower_components/karma-read-json": "pizzapanther/Karma-Read-JSON#^1.1.0",
"@bower_components/localforage": "mozilla/localForage#~1.4",
"@bower_components/microsoft-graph-client": "microsoftgraph/msgraph-sdk-javascript#^1.0.0",
"@bower_components/moment": "moment/moment#>= 2.9.0",
"@bower_components/moment-timezone": "moment/moment-timezone#~0.5.9",
"@bower_components/offline": "HubSpot/offline#~0.7.18",
"@bower_components/ua-parser-js": "faisalman/ua-parser-js#^0.7.17",
"@bower_components/microsoft-graph-client": "microsoftgraph/msgraph-sdk-javascript#^1.0.0"
"@bower_components/ua-parser-js": "faisalman/ua-parser-js#^0.7.17"
},
"engines": {
"yarn": ">= 1.0.0"
Expand Down
4 changes: 2 additions & 2 deletions src/assets/js/modernizr-output.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 77ca396

Please sign in to comment.