Update creating workspace script and README.md (#3930)

Signed-off-by: Ivan Osipov <bellycat77@gmail.com>
This commit is contained in:
Ivan Osipov 2023-11-03 22:05:12 +04:00 committed by GitHub
parent 7872a460e8
commit a2c861d0c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 5 deletions

View File

@ -66,17 +66,16 @@ By default, Docker volumes named dev_db, dev_elastic, and dev_files will be crea
Before you can begin, you need to create a workspace and an account and associate it with the workspace. Before you can begin, you need to create a workspace and an account and associate it with the workspace.
```bash ```bash
cd ./tool cd ./tool # dev/tool in the repository root
rushx run-local create-workspace ws1 -o DevWorkspace # Create workspace rushx run-local create-workspace ws1 -o DevWorkspace # Create workspace
rushx run-local create-account user1 -p 1234 -f John -l Appleseed # Create account rushx run-local create-account user1 -p 1234 -f John -l Appleseed # Create account
rushx run-local configure sanity-ws --list --enable '*' # Enable all modules, even if they are not yet intended to be used by a wide audience. rushx run-local configure ws1 --list --enable '*' # Enable all modules, even if they are not yet intended to be used by a wide audience.
rushx run-local assign-workspace user1 ws1 # Assign workspace to user. rushx run-local assign-workspace user1 ws1 # Assign workspace to user.
rushx run-local confirm-email user1 # To allow the creation of additional test workspaces. rushx run-local confirm-email user1 # To allow the creation of additional test workspaces.
``` ```
or just: or just:
sh ./scripts/build.sh
```bash ```bash
sh ./scripts/create-workspace.sh sh ./scripts/create-workspace.sh
@ -100,6 +99,13 @@ rushx dev-server
Then go to http://localhost:8080 Then go to http://localhost:8080
Use the following login credentials:
```
Email: user1
Password: 1234
Workspace: ws1
```
## Update project structure and database ## Update project structure and database
If the project's structure is updated, it may be necessary to relink and rebuild the projects. If the project's structure is updated, it may be necessary to relink and rebuild the projects.

View File

@ -1,6 +1,6 @@
cd ./tool cd ./dev/tool
rushx run-local create-workspace ws1 -o DevWorkspace # Create workspace rushx run-local create-workspace ws1 -o DevWorkspace # Create workspace
rushx run-local create-account user1 -p 1234 -f John -l Appleseed # Create account rushx run-local create-account user1 -p 1234 -f John -l Appleseed # Create account
rushx run-local configure sanity-ws --list --enable '*' # Enable all modules, even if they are not yet intended to be used by a wide audience. rushx run-local configure ws1 --list --enable '*' # Enable all modules, even if they are not yet intended to be used by a wide audience.
rushx run-local assign-workspace user1 ws1 # Assign workspace to user. rushx run-local assign-workspace user1 ws1 # Assign workspace to user.
rushx run-local confirm-email user1 # To allow the creation of additional test workspaces. rushx run-local confirm-email user1 # To allow the creation of additional test workspaces.