# desplega-create-react-app

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

Latest version **0.1.4** (published 2018-06-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install desplega-create-react-app
pnpm add desplega-create-react-app
yarn add desplega-create-react-app
bun add desplega-create-react-app
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2018-06-30 |
| First published | 2018-06-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 10.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | David De Anda |
| Maintainers | omarandstuff |
| Keywords | create, react, app, automate, ssh, pipeline |

## Links

- npm: https://www.npmjs.com/package/desplega-create-react-app
- Repository: https://github.com/omarandstuff/desplega-create-react-app
- Homepage: https://github.com/omarandstuff/desplega-create-react-app#readme
- Issues: https://github.com/omarandstuff/desplega-create-react-app/issues
- npm.io page: https://npm.io/package/desplega-create-react-app

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.4 (latest) — 2018-06-30
- 0.1.3 — 2018-06-30
- 0.1.2 — 2018-06-30
- 0.1.1 — 2018-06-30
- 0.1.0 — 2018-06-30

## README

# Desplega create react app
[![npm version](https://badge.fury.io/js/desplega-create-react-app.svg)](https://www.npmjs.com/package/desplega-create-react-app)

This is a prebuilt deplega configuration to deploy an app generated with [create react app](https://github.com/facebook/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.

```js
//.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

---
_Source: https://npm.io/package/desplega-create-react-app · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
