Skip to content

wri/otp-portal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open Timber Portal

Running locally in development mode

To get started in development mode:

  1. Clone the repository.
  2. Install dependencies with yarn install.
  3. Generate the required lang folder with yarn run transifex:pull. In case you didn't read this, it's built into the dev command.
  4. Copy the .env.default file into .env (ask for the app keys).
  5. Run the development server with yarn dev.

Building and deploying in production

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.

Regenerate Home Page Static Map

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.

Deploy landing

git push heroku landing:master

Deploy app

PRODUCTION

git push deploy master

STAGING

git push staging develop

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published