Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
dtcristo committed Apr 28, 2023
1 parent 33dbddb commit f074318
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,17 @@ The application is deployed at [gpt.dtcristo.com](https://gpt.dtcristo.com/) but

## Usage

Requires a Ruby environment, tested with Ruby 3.2.
Get an [OpenAI API key](https://platform.openai.com/account/api-keys). Run locally in Docker.

```sh
# Set OpenAI API key as environment variable.
export OPENAI_API_KEY="your_api_key_here"

# Install dependencies.
bundle install

# Start the web server.
bundle exec puma
# Build and run in Docker.
docker run --env OPENAI_API_KEY --publish 8080:8080 "$(docker build --quiet .)"
```

Application live at [localhost:9292](http://localhost:9292/).
Application live at [localhost:8080](http://localhost:8080/).

## License

Expand Down

0 comments on commit f074318

Please sign in to comment.