kopia lustrzana https://github.com/openstreetmap-polska/aed-mapa
Added AWS build support and modified README file
rodzic
361e5412a9
commit
8251b9b52d
|
@ -61,6 +61,14 @@ cp /home/aeduser/data_prod/aed_poland_metadata.json /var/www/html/aed_poland_met
|
|||
cp /home/aeduser/data_prod/aed_poland.csv /var/www/html/aed_poland.csv
|
||||
```
|
||||
|
||||
### Deployment to AWS
|
||||
|
||||
Build definition is in buildspec.yml file.
|
||||
Build environment that need to be set:
|
||||
1. oauth_consumer_key - Key for OSM Integration
|
||||
2. oauth_secret - Secret for OSM Integration
|
||||
3. url - URL of OSM API (Probably https://www.openstreetmap.org)
|
||||
|
||||
### Alternatives / Inne podobne
|
||||
|
||||
* https://github.com/chnuessli/defikarte.ch - https://defikarte.ch/
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
version: 0.2
|
||||
|
||||
phases:
|
||||
build:
|
||||
commands:
|
||||
- echo Build started on `date`
|
||||
- echo Updating OSM integration
|
||||
- sed -i "s/<< oauth_consumer_key >>/${oauth_consumer_key}/;s/<< oauth_secret >>/${oauth_secret}/;s|<< url >>|${url}|" ./web/js/osm-integration.js
|
||||
- python -m pip install -r requirements.txt
|
||||
- python download_data.py ./web
|
||||
post_build:
|
||||
commands:
|
||||
- echo Build completed on `date`
|
||||
artifacts:
|
||||
files:
|
||||
- '**/*'
|
||||
base-directory: web
|
||||
name: AED-artifacts
|
Ładowanie…
Reference in New Issue