Added AWS build support and modified README file

pull/71/head
AILLERON\luje 2022-05-12 17:02:08 +02:00
rodzic 361e5412a9
commit 8251b9b52d
2 zmienionych plików z 26 dodań i 0 usunięć

Wyświetl plik

@ -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/

18
buildspec.yml 100644
Wyświetl plik

@ -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