Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-deposit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pierre-Yves David
swh-deposit
Commits
06f2c8b2
Verified
Commit
06f2c8b2
authored
7 years ago
by
Antoine R. Dumont
Browse files
Options
Downloads
Patches
Plain Diff
README-dev: Explicit how to run deposit in dev/prod mode locally
parent
ad0b1bc4
No related branches found
Branches containing commit
Tags
v0.0.4
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README-dev.md
+72
-0
72 additions, 0 deletions
README-dev.md
with
72 additions
and
0 deletions
README-dev.md
0 → 100644
+
72
−
0
View file @
06f2c8b2
swh-deposit
==============
There are 2 modes.
# Development like
## Configuration
In ~/.config/swh/deposit/server.yml
```
YAML
# dev option
host: 127.0.0.1
port: 5006
# production
authentication: true
# 20 Mib max size
max_upload_size: 20971520
verbose: false
noop: false
objstorage:
cls: pathslicing
args:
root: /home/storage/swh-deposit/uploads
slicing: 0:1/1:5
```
## Run
Run local server which will use the previous setup.
```
Shell
make run-dev
```
# Production-like
This will run locally a mode similar to that of production.
## Configuration
This expects the same file describes in the previous chapter. Plus,
an additional private settings.yml file containing secret information
that is not in the source code repository.
In ~/.config/swh/deposit/private.yml, something like:
```
YAML
secret_key: production-local
db:
name: swh-deposit-dev
```
## Run
```
Shell
make run
```
Note: This expects gunicorn3 package installed on the system.
## Tests
```
Shell
cd swh && python3 -m manage test
```
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment