forked from reflex-dev/reflex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename pynecone to reflex (reflex-dev#1236)
- Loading branch information
Showing
216 changed files
with
4,377 additions
and
4,283 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[run] | ||
source = pynecone | ||
source = reflex | ||
branch = true | ||
|
||
[report] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,38 @@ | ||
# Pynecone Container Image Build | ||
# Reflex Container Image Build | ||
|
||
This example describes how to create and use a container image for Pynecone with your own code. | ||
This example describes how to create and use a container image for Reflex with your own code. | ||
|
||
## Update Requirements | ||
|
||
The `requirements.txt` includes the pynecone package which is need to install Pynecone framework. If you use additional packages in your project you have add this in the `requirements.txt` first. Copy the `Dockerfile` and the `requirements.txt` file in your project folder. | ||
The `requirements.txt` includes the reflex package which is need to install Reflex framework. If you use additional packages in your project you have add this in the `requirements.txt` first. Copy the `Dockerfile` and the `requirements.txt` file in your project folder. | ||
|
||
## Customize Pynecone Config | ||
## Customize Reflex Config | ||
|
||
The `pcconfig.py` includes the configuration of your Pynecone service. Edit the file like the following configuration. If you want to use a custom database you can set the endpoint in this file. | ||
The `rxconfig.py` includes the configuration of your Reflex service. Edit the file like the following configuration. If you want to use a custom database you can set the endpoint in this file. | ||
|
||
```python | ||
import pynecone as pc | ||
import reflex as rx | ||
|
||
config = pc.Config( | ||
config = rx.Config( | ||
app_name="app", | ||
api_url="0.0.0.0:8000", | ||
bun_path="/app/.bun/bin/bun", | ||
db_url="sqlite:///pynecone.db", | ||
db_url="sqlite:///reflex.db", | ||
) | ||
``` | ||
|
||
## Build Pynecone Container Image | ||
## Build Reflex Container Image | ||
|
||
To build your container image run the following command: | ||
|
||
```bash | ||
docker build -t pynecone-project:latest . | ||
docker build -t reflex-project:latest . | ||
``` | ||
|
||
## Start Container Service | ||
|
||
Finally, you can start your Pynecone container service as follows: | ||
Finally, you can start your Reflex container service as follows: | ||
|
||
```bash | ||
docker run -d -p 3000:3000 -p 8000:8000 --name pynecone pynecone-project:latest | ||
docker run -d -p 3000:3000 -p 8000:8000 --name reflex reflex-project:latest | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
pynecone | ||
reflex |
Oops, something went wrong.