-
Notifications
You must be signed in to change notification settings - Fork 511
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create alwaysdata provider presets and deployment doc
- Loading branch information
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# alwaysdata | ||
|
||
Deploy Nitro apps to alwaysdata. | ||
|
||
**Preset:** `alwaysdata` ([switch to this preset](/deploy/#changing-the-deployment-preset)) | ||
|
||
Nitro supports deploying on the [alwaysdata](https://www.alwaysdata.com/en/) platform with minimal configuration. | ||
|
||
## Set up application | ||
|
||
### Pre-requisites | ||
|
||
1. [Register a new profile](https://www.alwaysdata.com/en/register/) on alwaysdata platform if you don't have one. | ||
|
||
2. Get a free 100Mb plan to host your app. | ||
|
||
### Local deployment | ||
|
||
1. Build your project locally with `NITRO_PRESET=alwaysdata yarn build` | ||
|
||
2. [Upload your app](https://help.alwaysdata.com/en/remote-access/) to your account in its own directory (e.g. `$HOME/www/my-app`). | ||
|
||
3. On your admin panel, [create a new site](https://admin.alwaysdata.com/site/add/) for your app with the following features: | ||
- *Addresses*: `[account-name].alwaysdata.net` | ||
- *Type*: Node.js | ||
- *Command*: `node ./output/server/index.mjs` | ||
- *Working directory*: `www/my-app` (adapt it to your deployment path) | ||
- *Environment*: | ||
``` | ||
NITRO_PRESET=alwaysdata | ||
``` | ||
- *Node.js version*: pick at least `16.0.0` if needed, but `Default version` is fine. | ||
|
||
[Get more information about alwaysdata Node.js sites type](https://help.alwaysdata.com/en/languages/nodejs/). | ||
|
||
4. Your app is now live at `http(s)://[account-name].alwaysdata.net`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { defineNitroPreset } from "../preset"; | ||
|
||
export const digitalOcean = defineNitroPreset({ | ||
extends: "node-server", | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters