Tag: AWS – How To Deploy Two Application In Nginx Server?


  • AWS – How To Deploy Two Application In Nginx Server?

    AWS – How To Deploy Two Application In Nginx Server?

    GenAI – How To Deploy Two Application In Nginx Server ? Table Of Contents: Steps To Deploy Two Application In Nginx Server. Step-1: Mention This PUBLIC_URL Wherever You Are Referring The Static Files. Set base paths so React can load static files properly when hosted under a subfolder. In App.js, all paths to static files should use: src={`${process.env.PUBLIC_URL}/images/Harman-3.png`} Step-2: Take Two Separate Build For Two Applications. # For Softline $env:PUBLIC_URL="/softline/"; npm run build # For Hardline $env:PUBLIC_URL="/hardline/"; npm run build Step-3: SSH Into Server ssh [email protected] Step 4: Create Directories for Each App sudo mkdir -p /var/www/html/hardline sudo mkdir -p

    Read More