Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simplify Layer0 deployment guide #1727

Merged
merged 2 commits into from
Jan 10, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 8 additions & 14 deletions docs/content/documentation/deployment/layer0.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,8 @@ npm i -g @layer0/cli
```

2. Create a package.json at the root of your project with the following:
```js
{
"name": "zola",
"version": "1.0.0",
"scripts": {
"build": "zola build",
"layer0:dev": "0 dev",
"layer0:buid": "0 build",
"layer0:deploy": "0 deploy"
},
"dependencies": {},
"devDependencies": {}
}
```bash
npm init
```

3. Initialize your project with:
Expand Down Expand Up @@ -55,7 +44,12 @@ export default new Router().static('public', ({ cache }) => {
})
```

5. Deploy with:
5. Build your zola app:
```bash
zola build
```

6. Deploy!
```bash
0 deploy
```