Quanto dinheiro é gasto pelo governo federal para preservar a Amazônia? Onde os recursos são investidos? Um olhar sobre era moderna do desmatamento aponta os sucessos e as falhas da estratégia oficial de combate à devastação da Amazônia brasileira.
- node v6.17.x
- npm v3.10.10
Install dependencies:
$ npm install
Install napa dependencies
$ npm run install
Create dist folder and compile project
$ npm run predeploy
Access http://localhost:3002/
Watch files
$ npm run watch
$ npm run deploy
OBS: open src/CNAME and change domain if needed
Install environment and dependencies
$ docker-compose build --no-cache
Starting docker
$ docker-compose up
Install napa dependencies (open docker bash and install)
$ docker-compose exec app bash
docker$ npm run install
Create dist folder and compile project (in docker bash)
docker$ npm run predeploy
Access http://localhost:3002/
docker$ npm run deploy
-
If you use 2FA (2 factor authentication) on git hub, follow these steps.
-
When using docker you can use watch for save and auto compile files when developing. For this you have to copy dist and node_modules from docker to host and uncomment volumes in docker-compose.yml file. The steps are:
-
Copy dist and node_modules from docker to host (when docker-compose is up and running using bash from host) $ docker cp
$(docker-compose ps -q app):/home/node/app/node_modules . $ docker cp $(docker-compose ps -q app):/home/node/app/dist . -
Uncomment dist and node_modules folder from .dockerignore file
-
Uncomment Volumes from docker-compose.yml
-
docker-compose down
-
docker-compose up
-
Inside docker bash: docker-compose exec app bash
docker$ npm run watch
rafgraph for the 404.html redirect (rewrite rule for github pages). It works!
Natalie Cardot how to easily Deploy a Create React App Project to GitHub Pages.
Ginny Fahs how to authenticate on github with 2FA.
Paulo Campos at Studio Cubo Web for converting this site into github pages host