-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate to Flask-CLI from fask_scriptp
- Loading branch information
1 parent
645918e
commit 4640a22
Showing
4 changed files
with
101 additions
and
97 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 |
---|---|---|
|
@@ -9,8 +9,8 @@ Synology Package Repository | |
### Installation | ||
1. Install dependencies with `poetry install` | ||
2. Run the next commands in the virtual environment `poetry shell` | ||
3. Create the tables with `python manage.py db create` | ||
4. Populate the database with some fake packages with `python manage.py db populate` | ||
3. Create the tables with `python manage.py create` | ||
4. Populate the database with some fake packages with `python manage.py populate` | ||
5. Add an user with `python manage.py user create -u Admin -e [email protected] -p adminadmin` | ||
6. Grant the created user with Administrator permissions `python manage.py user add_role -u [email protected] -r admin` | ||
7. Grant the created user with Package Administrator permissions `python manage.py user add_role -u [email protected] -r package_admin` | ||
|
@@ -19,7 +19,7 @@ Synology Package Repository | |
To reset the environment, clean up with `python manage.py clean`. | ||
|
||
### Run | ||
1. Start the development server with `python manage.py runserver` | ||
1. Start the development server with `python manage.py run` | ||
2. Website is available at http://localhost:5000 | ||
3. Admin interface is available at http://localhost:5000/admin | ||
4. NAS interface is available at http://localhost:5000/nas | ||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
4640a22
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixes #88