Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
netvs-middleware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
scc-net
netvs
netvs-middleware
Commits
82d7d96d
Commit
82d7d96d
authored
3 years ago
by
Alexander Kaschta
Committed by
Janis Streib
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
UPD: Improvements to the documentation
parent
1168c366
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+86
-0
86 additions, 0 deletions
README.md
with
86 additions
and
0 deletions
README.md
0 → 100644
+
86
−
0
View file @
82d7d96d
# NETVS - Middleware
## Installation
The NET-SUITE middleware requires
```python3```
.
In case you don't want a venv setup, omit steps 1&2.
1.
Create venv:
```
shell
virtualenv venv/
```
2. Change into venv:
```
shell
source bin/activate
```
3. Install dependencies:
```
shell
pip install -r requirements.txt
```
## Productive setup with uwsgi
```
shell
uwsgi -s /tmp/net-suite.sock --virtualenv
<path
to
env
>
--manage-script-name --mount /net-suite=run:app
```
## DEV-Setup
```
DEBUG = True
``` in ```
config.py
```.
```
shell
python3 run.py
```
## systemd
Also take at look at the [uwsgi documentation](http://uwsgi-docs.readthedocs.io/en/latest/Systemd.html#one-service-per-app-in-systemd).
## Configuration
### NET-DB
#### Postgres
Net-Suite uses different databases depending on the host operation mode defined in ```/usr/local/etc/host_oper_mode_data.cfg```:
```
INI
[op_environment]
mode = test
# mode = prod
# mode = test
[redundancy]
mode = active
[default_database_connection]
prod = pgsql_prod
test = pgsql_test
devel = psql_devel
```
The different databases are defined in the ```HOME``` of the user running DNSVS in the file ``` ~/.db_connection_data.ini```:
```
INI
[pgsql_prod]
host=prodhost
port=5435
user=user
db=db
[pgsql_test]
host=testhost
port=5435
user=user
db=db
[pgsql_devel]
host=develhost
port=5435
user=user
db=db
```
Postgres' authentication information is retrieved from ```~/.pgpass```.
\ No newline at end of file
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