- Landing: http://www.opentimberportal.org
- App: http://otp.vizzuality.com/
To get started in development mode:
- Clone the repository.
- Install dependencies with
yarn install. - Generate the required
langfolder withyarn run transifex:pull. In case you didn't read this, it's built into thedevcommand. - Copy the
.env.defaultfile into.env(ask for the app keys). - Run the development server with
yarn dev.
If you wanted to run this site in production run:
yarn install
yarn build
yarn start
You should run the the build step again any time you make changes to pages or components.
Home page map could be regenerated using tools/map-screenshot/index.js script.
It's using puppeteer to take screenshot of locally running web page, that's why it's esential to first yarn build project and then yarn start.
Make sure you have the map page enabled - set FEATURE_MAP_PAGE to true in .env file.
After creating screenshot run cwebp -q 75 static/images/home/bg-map.jpg -o static/images/home/bg-map.webp to create webp image.
git push heroku landing:master
PRODUCTION
git push deploy master
STAGING
git push staging develop