Skip to content

Latest commit

 

History

History
132 lines (105 loc) · 3.5 KB

INSTALLATION_SURGE_ENGLISH.md

File metadata and controls

132 lines (105 loc) · 3.5 KB

Deploying with Surge

Step 1:* Install npm

  • npm install
  • In Windows open as administrator
  • In UBUNTU or Mac use super user method. (sudo -i) npm

Step 2:* Create a production build:

  • cd chat.susi.ai cd
  • npm run build build
Output: *(sample)*

    > [email protected] build C:\FOSSASIA\chat.susi.ai
    > react-scripts build
    
    Creating an optimized production build...
    Compiled successfully.
    
    File sizes after gzip:
    
      1011.99 KB  build\static\js\main.2660cfa3.js
      23.64 KB    build\static\css\main.7cf93e8b.css
    
    The project was built assuming it is hosted at the server root.
    To override this, specify the homepage in your package.json.
    For example, add this to build it for GitHub Pages:
    
      "homepage": "http://myname.github.io/myapp",
    
    The build folder is ready to be deployed.
    You may serve it with a static server:
    
      npm install -g serve
      serve -s build

Step 3: Install Surge

  • npm install -g surge
  • In Windows open as administrator
  • In UBUNTU or Mac use super user method. (sudo -i) build
Output: *(sample)*

    npm WARN deprecated [email protected]: â ï¸  WARNING â ï¸ (...)
    npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
    npm WARN deprecated [email protected]: Use uuid module instead
    C:\Users\*\AppData\Roaming\npm\surge -> C:\Users\*\AppData\Roaming\npm\node_modules\surge\lib\cli.js
    C:\Users\*\AppData\Roaming\npm
    `-- [email protected]
      +-- [email protected]
      | `-- [email protected]
      +-- [email protected]
      | +-- [email protected]
      | | +-- [email protected]
      | | +-- [email protected]
      | | | `-- [email protected]
      | | `-- [email protected]
      | |   `-- [email protected]
      | |     +-- [email protected]
      | |     +-- [email protected]
      | |     | `-- [email protected]
      | |     +-- [email protected]
      | |     +-- [email protected]
      | |     `-- [email protected]
      | +-- [email protected]
      | `-- [email protected]
      |   `-- [email protected]
      |     +-- [email protected]
      |     `-- [email protected]
      +-- [email protected]
      +-- [email protected]
      +-- [email protected]
      +-- [email protected]
      +-- [email protected]
      .
      .
      (blah)
      (blah)
      .
      .
      +-- [email protected]
      +-- [email protected]
      | `-- [email protected]
      +-- [email protected]
      | +-- [email protected]
      | | `-- [email protected]
      | +-- [email protected]
      | | `-- [email protected]
      | |   `-- [email protected]
      | `-- [email protected]
      `-- [email protected]

Step 4: Configure and Deploy with Surge!

cd build surge and Enter you details build

Output: *(sample)*
    
        Surge - surge.sh
    
                  email: [email protected]
                  token: *****************
           project path: C:\FOSSASIA\chat.susi.ai\build\
                   size: 58 files, 31.0 MB
                 domain: sophisticated-reason.surge.sh
    
    
                   plan: Free
                  users: [email protected]
             IP Address: 45._5._10.___
    
        Success! Project is published and running at sophisticated-reason.surge.sh