Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/omarandstuff/desplega-create-react-app
This module let you deploy a create react app to a remote server such as a DO droplet EC instance.
https://github.com/omarandstuff/desplega-create-react-app
Last synced: 11 days ago
JSON representation
This module let you deploy a create react app to a remote server such as a DO droplet EC instance.
- Host: GitHub
- URL: https://github.com/omarandstuff/desplega-create-react-app
- Owner: omarandstuff
- License: mit
- Created: 2018-06-29T21:50:59.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-01T06:10:55.000Z (over 6 years ago)
- Last Synced: 2024-08-10T04:26:05.178Z (3 months ago)
- Language: JavaScript
- Size: 55.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
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 listen to this domain | ip### asDefault [false]
if true it unlinks the default nginx conf file and set the app server as the default server