https://github.com/yasaricli/nextd
Nextd - Nextj.s Apps for Production Deployments
https://github.com/yasaricli/nextd
deployment javascript nextjs production react
Last synced: 11 months ago
JSON representation
Nextd - Nextj.s Apps for Production Deployments
- Host: GitHub
- URL: https://github.com/yasaricli/nextd
- Owner: yasaricli
- Created: 2018-12-13T18:36:14.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-27T17:38:28.000Z (over 7 years ago)
- Last Synced: 2025-02-17T15:38:39.544Z (about 1 year ago)
- Topics: deployment, javascript, nextjs, production, react
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/nextd
- Size: 47.9 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
> Deploy next.js applications to your own servers using SSH and SFTP. Pull and feature requests are encouraged.
## Installation
```
$ npm install -g nextd
```
Use -g flag to use nextd via the CLI
## Configuration
Imagine the following nextd.json:
nextd --init
``` JS
{
"name": "Nextjs App Name",
"host": "192.0.0.100",
"username": "ubuntu",
"privateKey": "/Users/username/Desktop/server.pem",
"remoteDirectory": "/home/ubuntu/appname_dir",
"password": "",
"env": {
"API_URL": "0.0.0.0"
}
}
```
### The deploy process
Builds your app, using nextd deploy
nextd --deploy
* Uploads the app bundle, the start script, and the environment variables to your servers
* Runs the start script
* Verifies that the app sucessfully started
> Congratulations! Your app is now running on the server, accessible to your potential users!
#### Standard options
* **name** The application name.
* **host** The server you want to deploy to. Has to have an SSH server with SFTP subsystem.
* **user** The username to use for the SSH connection.
* **privateKey** The private key file for your SSH user.
* **remoteDirectory** The absolute path on the server where you want to run the app.
### Help
```bash
Usage: nextd [options] [command]
Commands:
deploy Deploys the git repository to a remote server.
Options:
-h, --help output usage information
-V, --version output the version number
-f, --forever Attempt to start/restart the program on the server using forever.
```