Install a new ODOP system
This procedure describes how to create a completely independent copy of the ODOP application code and design library database.
Such a new version may be customized for any purpose.
If necessary, install a new development environment.
Installing a new ODOP system starts with:
GitHub
Heroku
- Create Admin User
- Create Dyno
- Overview: Install Add-ons of JAWS Database: Separate DBs for Production, Staging, Development and Test
- Overview: Set Dyno formation to "web: node server.js"
- Deploy: Deployment method = Heroku Git
- Settings: Config Vars: for example, the following Keys and their Values
- JAWSDB_URL
- JS_RUNTIME_TARGET_BUNDLE
- NODE_ENV
- REACT_APP_CLIENT_ID
- REACT_APP_DESIGN_NAME
- REACT_APP_DESIGN_TYPE
- REACT_APP_DESIGN_TYPES
- REACT_APP_DESIGN_UNITS
- REACT_APP_DESIGN_VIEW
- REACT_APP_ISSUER
- REACT_APP_NODE_ENV
- REACT_APP_SESSION_REFRESH
- Settings: Buildpacks: https://github.com/thegrumpys/create-react-app-buildpack.git.
This is refers to three unique Heroku buildpacks.
- The first is https://github.com/heroku/heroku-buildpack-nodejs.git which
installs Node, builds the server and client for production
- The second is https://github.com/thegrumpys/create-react-app-inner-buildpack.git which
injects the Configuration Variables (see above) into the
React application at the beginning of runtime,
- The third is https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku-community/nginx.tgz which installs an Nginx webserver.
This webserver is installed by the build, but is never started for ODOP.
It is present for compatibility with the previous version of create-react-app-buildpack and for people who do not have their own webserver.
ODOP has server.js which is used instead of Nginx.
MySQL database