Last active
January 21, 2022 13:54
-
-
Save saki007ster/23a18cc4d8dabd00fbcef3a7cb8cb944 to your computer and use it in GitHub Desktop.
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
name: gatsby | |
proxy: | |
appserver: | |
# Though Gatsby will be running on 80, it will still be available via SSH here. | |
- gatsby.lndo.site | |
services: | |
# Prefer appserver as a name since Lando defaults to it - making `lando ssh` functional as opposed to a required service name (`lando ssh nodejs` | |
appserver: | |
type: node:10 | |
# One-time build step | |
install_dependencies_as_me: | |
- yarn global add gatsby-cli | |
# Initial build fail-safe for the Sharp NodeJS package. | |
# Sharp can be a pain. If installed via host, it may break in Lando. | |
- rm -rf node_modules && yarn | |
command: gatsby develop --host 0.0.0.0 --port 80 | |
#### | |
# Irrelevant, but bonus tooling | |
tooling: | |
yarn: | |
service: appserver | |
npm: | |
cmd: Nope, try `lando yarn` instead. | |
service: appserver | |
node: | |
service: appserver | |
gatsby: | |
service: appserver | |
gatsby:start: | |
cmd: gatsby develop --host 0.0.0.0 --port 80 | |
service: appserver |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment