Skip to content

Commit 880598b

Browse files
committed
Fix sprite exec commands on unpublished pages
1 parent 31b6d6e commit 880598b

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

src/content/docs/concepts/checkpoints.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ Checkpoints capture environment state, not version history. They're not a replac
580580

581581
```bash
582582
# Good: Use both
583-
sprite exec "git commit -am 'Save progress'"
583+
sprite exec git commit -am 'Save progress'
584584
sprite checkpoint create
585585

586586
# Bad: Only using checkpoints for code

src/content/docs/concepts/networking.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ Run a web server and access it via the Sprite URL:
134134

135135
```bash
136136
# Start a simple HTTP server
137-
sprite exec -detachable "python -m http.server 8080"
137+
sprite exec python -m http.server 8080
138138

139139
# Get the URL
140140
sprite url
@@ -155,7 +155,7 @@ Let's say you've got a frontend or backend dev server that watches files and hot
155155

156156
```bash
157157
# Start dev server in detachable session
158-
sprite exec -detachable "cd /home/sprite/app && npm run dev"
158+
sprite exec bash -c "cd /home/sprite/app && npm run dev"
159159

160160
# Forward the port locally
161161
sprite proxy 3000
@@ -171,7 +171,7 @@ Running a database inside a Sprite is weirdly nice. You can spin up Postgres, fo
171171

172172
```bash
173173
# Start PostgreSQL (if installed)
174-
sprite exec -detachable "pg_ctl start"
174+
sprite exec pg_ctl start
175175

176176
# Forward port locally
177177
sprite proxy 5432
@@ -186,9 +186,9 @@ Sprites can run multiple processes. You can forward all the ports you care about
186186

187187
```bash
188188
# Start multiple services
189-
sprite exec -detachable "cd /home/sprite/api && npm start" # Port 3000
190-
sprite exec -detachable "cd /home/sprite/worker && npm start" # Port 3001
191-
sprite exec -detachable "redis-server" # Port 6379
189+
sprite exec bash -c "cd /home/sprite/api && npm start" # Port 3000
190+
sprite exec bash -c "cd /home/sprite/worker && npm start" # Port 3001
191+
sprite exec redis-server # Port 6379
192192

193193
# Forward all ports
194194
sprite proxy 3000 3001 6379
@@ -206,7 +206,7 @@ The default environment includes common network tools, and you can install addit
206206

207207
Example network tool installation:
208208
```bash
209-
sprite exec "apt-get update && apt-get install -y nmap netcat"
209+
sprite exec bash -c "apt-get update && apt-get install -y nmap netcat"
210210
```
211211

212212
## Troubleshooting
@@ -263,4 +263,4 @@ We don't add firewall rules or block inbound traffic to forwarded ports, but we
263263
icon="layers"
264264
client:load
265265
/>
266-
</CardGrid>
266+
</CardGrid>

src/content/docs/reference/billing.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ sprite console
100100
# (leave terminal open for hours while doing other things)
101101

102102
# Good: Run specific commands
103-
sprite exec "npm test"
104-
sprite exec "npm build"
103+
sprite exec npm test
104+
sprite exec npm build
105105
```
106106

107107
### Use Hibernation Effectively
@@ -112,9 +112,9 @@ Sprites hibernate after ~30 seconds of inactivity. Close idle TTY sessions and k
112112

113113
```bash
114114
# Remove unnecessary files
115-
sprite exec "rm -rf node_modules/.cache"
116-
sprite exec "apt-get clean"
117-
sprite exec "pip cache purge"
115+
sprite exec rm -rf node_modules/.cache
116+
sprite exec apt-get clean
117+
sprite exec pip cache purge
118118
```
119119

120120
### Use Checkpoints Wisely

src/content/docs/sprites.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ sprite create my-sprite
2828
sprite exec python -c "print('hello')"
2929

3030
# Stream output from long-running commands
31-
sprite exec "for i in {1..10}; do date +%T; sleep 0.5; done"
31+
sprite exec bash -c "for i in {1..10}; do date +%T; sleep 0.5; done"
3232

3333
# Destroy when done
3434
sprite destroy -s my-sprite

0 commit comments

Comments
 (0)