home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1356630092

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions issue performed_via_github_app
https://github.com/simonw/datasette/issues/1955#issuecomment-1356630092 https://api.github.com/repos/simonw/datasette/issues/1955 1356630092 IC_kwDOBm6k_c5Q3IhM 9599 2022-12-18T02:20:01Z 2022-12-18T02:20:01Z OWNER

Asked ChatGPT:

Write a bash script which starts a server in the background using "datasette -p 8002", then uses curl to make a test request against it, then shuts the server down again at the end

It gave me:

```bash

!/bin/bash

Start the server in the background

datasette -p 8002 &

Store the background process ID in a variable

server_pid=$!

Make a test request using curl

curl http://localhost:8002

Shut down the server

kill $server_pid ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
1496652622  
Powered by Datasette · Queries took 0.815ms · About: github-to-sqlite