ReactPWA

ReactPWA

  • Docs
  • Features
  • Blog
  • Examples
  • Help

›Deployments

Getting Started

  • Initial setup
  • PawJS Configuration
  • Web App manifest

Guide

  • External resources
  • Internal APIs
  • Environment Variables

Routing

  • Add new route
  • Async routing
  • Nested routes

Plugins

  • Redux
  • Image Optimization
  • Sass
  • LESS

Deployments

  • Heroku
  • Amazon EC2
  • Digital Ocean
Edit

Deploying to Digital Ocean

Prerequisites

  • Digital Ocean Droplet
  • NodeJs
  • Nginx
  • PM2 (optional)

Step 1: Build and Transfer files to Digital Ocean Droplet

  • Build the Application for the production environment
    $ npm run build
    
  • Zip the dist folder
    $ tar cvfz dist.tar.gz dist
    
  • Copy the Zip file to the Digital Ocean Droplet
    $ sftp root@IP-of-droplet <<< $'put -r ./dist.tar.gz /path-on-server/'
    

Step 2: Deploy the code

  • Connect to your Digital Ocean Droplet using SSH.
  • Unzip the tar file and move it to desired dirtectory using the following command:
    $ tar xvzf dist.tar.gz && mv dist /path/
    
  • Start the server using:
    $ node server.js
    
  • (Optional) Start the process using any of the process managers(pm2 here):
    $ cd /path && pm2 start server.js --name="my-site" -i 3 --watch
    
← Amazon EC2
  • Prerequisites
  • Step 1: Build and Transfer files to Digital Ocean Droplet
  • Step 2: Deploy the code
ReactPWA
Docs
Getting StartedPluginsExamples
Community
User ShowcaseProject Chat
More
BlogGitHubStar

Giants supporting us

Atyantik Technologies Private LimitedDigitalOceanEventerpriseBrowserStackNavicat
 
Support ReactPWA

Copyright © 2019 Atyantik Technologies Private Limited