Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

desplega-create-react-app

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

desplega-create-react-app

Desplega module to deploy a react app to a genearal porpuse virtual server.

  • 0.1.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Desplega create react app

npm version

This is a prebuilt deplega configuration to deploy an app generated with create react app. Using the branch master of the repository that holds your react app.

Install

npm install --save-dev desplega-create-react-app
yarn add --dev desplega-create-react-app

Configuration

Just create a desplega file in your proyect's root directory. This asumes you have configured a remote server to authenticate with your public key and a username in the sudoers group.

//.desplega.js
const desplegaCreateReactApp = require("desplega-create-react-app");

module.exports = desplegaCreateReactApp({
  host: "yourdomain.com | your:IP",
  username: "deploy",
  deployTo: "apps/react-app",
  branchName: "master",
  repoUrl: "https://github.com/yourusername/yourreactapp",
  limitReleaseCount: 5,
  withNginx: true,
  serverName: "react-app.yourdomain.com",
  asDefault: true
});

host

Remote server to connect and deploy your app

username [root]

User name to connect in the remote server

deployTo

Where to put the files of your app

branchName [master]

Source branch to use

repoUrl

Repository to clone and process

limitReleaseCount

You can cache older version of the deployed apps just in case.

withNginx [false]

Installs and configure nginx to serve your app

serverName

Configure the nginx virtual server to leasen to this domain | ip

asDefault [false]

if true it unlinks the default nginx conf file and set the app server as the default server

Keywords

FAQs

Package last updated on 30 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc