📋
Philanthrolab
  • Philanthrolab Technical Docs
  • SSN Component Library
  • Datalabs
    • Introduction
    • Architecture
    • Schema Dictionary
    • Project Status/Timeline
  • Social Safety Network
    • Introduction
    • Architecture
    • Schema Dictionary
    • Project Status/Timeline
      • V1
      • V2
  • SSN for Organisations
    • Introduction
    • Features and user stories
    • Architecture
    • Schema Dictionary
    • Project Status/Timeline
  • Developer Resources
    • Frontend Project Guide
    • Coding Guide
    • Creating a Neo4j instance on GCP vm
    • Set up local deploy for staging and production envs
    • Install ElasticSearch on GCP
    • ElasticSearch Query
    • ETL Strategy for Neo4j Database: Scraping, Transformation, and Enrichment
    • ETL Checklist
  • SSN Authentication
    • Introduction
    • Architecture
    • Schema
  • SSN Admin Dashboard
    • Introduction
    • Architecture
  • SSN Job Board
    • Introduction
    • Architecture
    • User Stories
    • Schema Dictionary
  • SSN Eligibility criteria AI feature
    • Introduction
    • Working Principles
    • Architecture
    • Schema Dictionary
  • DataBase Repopulation
    • Introduction
    • Proposed Solution
    • DB Details
    • Batch 1
  • LLM INTEGRATION
    • LLM Strategy and Implementation
Powered by GitBook
On this page
  • GOTCHAS
  • DOMAIN ADDITION

Was this helpful?

  1. Developer Resources

Set up local deploy for staging and production envs

PreviousCreating a Neo4j instance on GCP vmNextInstall ElasticSearch on GCP

Last updated 4 years ago

Was this helpful?

  • Create different version of apps on heroku via dashboard

  • Add buildpack to settings: https://buildpack-registry.s3.amazonaws.com/buildpacks/mars/create-react-app.tgz

    • If deploying a React app, follow this tutorial:

  • Add the remote url of each env locally:

    • Prod:

      git remote add prod <heroku-git-url>
    • Staging:

      git remote add staging <heroku-git-url>
  • Add to scripts in package.json

    "deploy:staging": "git push staging",
    "deploy:prod": "git push prod"
  • View remotes with:

    git remote -v

GOTCHAS

  • Remove homepage if available in package.json

  • Add a start script that starts the server

DOMAIN ADDITION

  • Add domain to project:

    heroku domains:add <domain name>
  • Print available domains

    heroku domains
  • Add CNAME plus target to hosting provider

  • Confirm that domain has been enabled with

    host <domain name>

ref:

https://www.geeksforgeeks.org/how-to-deploy-react-app-to-heroku/
https://support.cloudflare.com/hc/en-us/articles/205893698-Configure-Cloudflare-and-Heroku-over-HTTPS
https://devcenter.heroku.com/articles/custom-domains