on master help sign in
readme: Move local deploy to end of section
921c3e8Elliot Cameron
README.md+17−17
@@ -101,23 +101,6 @@ Obelisk officially supports terminal-based feedback (akin to [`ghcid`](https://g
101
101
102## Deploying
102## Deploying
103
103
104−### Locally
105−
106−Build everything:
107−
108−```bash
109−nix-build -A exe --no-out-link
110−```
111−
112−Copy the result to a new directory, add configuration, and run!
113−
114−```bash
115−mkdir test-app
116−ln -s $(nix-build -A exe --no-out-link)/* test-app/
117−cp -r config test-app
118−(cd test-app && ./backend)
119−```
120−
121### Default EC2 Deployment
104### Default EC2 Deployment
122
105
123In this section we will demonstrate how to deploy your Obelisk app to an Amazon EC2 instance. Obelisk deployments are configured for EC2 by default (see [Custom Non-EC2 Deployment](#custom-non-ec2-deployment)).
106In this section we will demonstrate how to deploy your Obelisk app to an Amazon EC2 instance. Obelisk deployments are configured for EC2 by default (see [Custom Non-EC2 Deployment](#custom-non-ec2-deployment)).
@@ -182,6 +165,23 @@ Here's a `module.nix` that is configured for deployment to a VirtualBox VM (runn
182
165
183The `{...}:` and following is the [NixOS module](https://nixos.org/nixos/manual/index.html#sec-writing-modules) definition.
166The `{...}:` and following is the [NixOS module](https://nixos.org/nixos/manual/index.html#sec-writing-modules) definition.
184
167
168+### Locally
169+
170+To get a full build of your app to run locally:
171+
172+```bash
173+nix-build -A exe --no-out-link
174+```
175+
176+Copy the result to a new directory, add configuration, and run!
177+
178+```bash
179+mkdir test-app
180+ln -s $(nix-build -A exe --no-out-link)/* test-app/
181+cp -r config test-app
182+(cd test-app && ./backend)
183+```
184+
185### From macOS
185### From macOS
186
186
187Deploying from macOS requires some extra setup:
187Deploying from macOS requires some extra setup: