Skip to content

Running Locally

How to run the app locally:

  1. Complete the steps in:
    1. Local Development Environment
    2. Sandbox Environment
  2. Ensure the sandbox environment is running
  3. make install
  4. Login to the Openshift project 101ed4-prod on the CLI
  5. make copy-db
  6. make dev

Troubleshooting

Canvas error

Problem

The make install command gives the error:

1
2
3
4
5
cd app/node_modules/.pnpm/canvas@3.2.0/node_modules/canvas &&\
 pnpm add -D node-gyp &&\
 pnpm exec node-gyp rebuild
bash: line 0: cd: app/node_modules/.pnpm/canvas@3.2.0/node_modules/canvas: No such file or directory
make: *** [canvas-install] Error 1

Solution

  1. Comment out the install: canvas-install section in the Makefile
  2. make install
  3. Uncomment the install: canvas-install section
  4. make install