- Website: Surge.sh
- Follow this asciicast to deploy SUSI.AI on Surge step by step with installing all dependencies: https://asciinema.org/a/154686
npm install
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
npm install -g surge
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]
cd build
surge
and Enter you details
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