mirror of
https://github.com/vale981/ray
synced 2025-03-12 14:16:39 -04:00
32 lines
784 B
YAML
32 lines
784 B
YAML
![]() |
# This file is generated by `ray project create`.
|
||
|
|
||
|
name: ray-example-newsreader
|
||
|
|
||
|
description: "A simple news reader example that uses ray actors to serve requests"
|
||
|
tags: ["ray-example", "flask", "rss", "newsreader"]
|
||
|
documentation: https://ray.readthedocs.io/en/latest/auto_examples/plot_newsreader.html
|
||
|
|
||
|
cluster: .rayproject/cluster.yaml
|
||
|
|
||
|
environment:
|
||
|
requirements: .rayproject/requirements.txt
|
||
|
|
||
|
commands:
|
||
|
- name: run-backend
|
||
|
command: python server.py
|
||
|
config:
|
||
|
port_forward: 5000
|
||
|
- name: run-frontend
|
||
|
command: |
|
||
|
git clone https://github.com/ray-project/qreader
|
||
|
cd qreader
|
||
|
npm install
|
||
|
npm run dev
|
||
|
config:
|
||
|
port_forward: 8080
|
||
|
|
||
|
output_files: [
|
||
|
# Save the logs from the latest run in snapshots.
|
||
|
"/tmp/ray/session_latest/logs"
|
||
|
]
|