Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ fly open # open the app in a browser

## Things to try

- Run in more regions: `fly regions add nrt`, then `fly scale count 2`
- Run in more regions: `fly scale count 2 --region nrt`, then route to it with `curl -H "fly-prefer-region: nrt" https://<app>.fly.dev`
- Change machine size: `fly scale vm shared-cpu-2x`
- Add a custom domain: `fly certs add example.com`
50 changes: 25 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"start": "node server.js"
},
"dependencies": {
"ejs": "^7.0.1",
"ejs": "^7.0.2",
"express": "^5.3.0"
},
"main": "server.js",
Expand Down
11 changes: 6 additions & 5 deletions views/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,15 @@
<li>
<strong>Run in another region</strong>
<div class="cmd">
<pre><code>fly regions add nrt</code></pre>
<%- include('_copy', { value: 'fly regions add nrt', label: 'command' }) %>
<pre><code>fly scale count 2 --region nrt</code></pre>
<%- include('_copy', { value: 'fly scale count 2 --region nrt', label: 'command' }) %>
</div>
<span class="muted">then ask for that region explicitly, since requests normally go to the nearest one:</span>
<% const curlCmd = 'curl -H "fly-prefer-region: nrt" https://' + appName + '.fly.dev'; %>
<div class="cmd">
<pre><code>fly scale count 2</code></pre>
<%- include('_copy', { value: 'fly scale count 2', label: 'command' }) %>
<pre><code><%= curlCmd %></code></pre>
<%- include('_copy', { value: curlCmd, label: 'command' }) %>
</div>
<span class="muted">then refresh to see a different region.</span>
</li>
<li>
<strong>Scale up the machine</strong>
Expand Down
Loading