reflex init
will create an rxconfig.py
file in your root directory. You can pass keyword arguments to the Config
class to configure your app.# rxconfig.py
import reflex as rx
config = rx.Config(
app_name="my_app_name",
# Connect to your own database.
db_url="postgresql://user:password@localhost:5432/my_db",
# Change the frontend port.
frontend_port=3001,
)
See the config reference for all the parameters available.
frontend_port
setting, you can set the FRONTEND_PORT
environment variable.$ FRONTEND_PORT=3001 reflex run
reflex run
.$ reflex run --frontend-port 3001