17 lines
442 B
YAML
17 lines
442 B
YAML
# fx on Amazon Lightsai
|
|
|
|
* make sure your instance have docker installed and running,
|
|
* make sure your instance can be ssh login (with user and password)
|
|
|
|
```
|
|
ssh <user>@<host>
|
|
```
|
|
|
|
* make sure your instance accept port 8866
|
|
|
|
* then you can deploy function to remote host
|
|
|
|
```
|
|
DOCKER_REMOTE_HOST_ADDR=<your host> DOCKER_REMOTE_HOST_USER=<your user> DOCKER_REMOTE_HOST_PASSWORD=<your password> ./build/fx up -p 1234 test/functions/func.js
|
|
```
|