Fix the readme to reference the application, update the response code for create repo when no auth credentials are present.
This commit is contained in:
parent
867a3e38c1
commit
4ae40b7370
2 changed files with 3 additions and 3 deletions
|
@ -21,7 +21,7 @@ running:
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo mkdir -p /mnt/nginx/ && sudo nginx -c `pwd`/nginx.conf
|
sudo mkdir -p /mnt/nginx/ && sudo nginx -c `pwd`/nginx.conf
|
||||||
STACK=prod gunicorn -c gunicorn_config.py
|
STACK=prod gunicorn -c gunicorn_config.py application:application
|
||||||
```
|
```
|
||||||
|
|
||||||
start the workers:
|
start the workers:
|
||||||
|
|
|
@ -134,8 +134,8 @@ def create_repository(namespace, repository):
|
||||||
repo = model.get_repository(namespace, repository)
|
repo = model.get_repository(namespace, repository)
|
||||||
|
|
||||||
if not repo and get_authenticated_user() is None:
|
if not repo and get_authenticated_user() is None:
|
||||||
logger.debug('Attempt to create new repository with token auth.')
|
logger.debug('Attempt to create new repository without user auth.')
|
||||||
abort(400)
|
abort(401)
|
||||||
|
|
||||||
elif repo:
|
elif repo:
|
||||||
permission = ModifyRepositoryPermission(namespace, repository)
|
permission = ModifyRepositoryPermission(namespace, repository)
|
||||||
|
|
Reference in a new issue