Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-docs
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
Model registry
Operate
Environments
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
Platform
Development
swh-docs
Commits
85135f09
Unverified
Commit
85135f09
authored
5 months ago
by
Antoine R. Dumont
Browse files
Options
Downloads
Patches
Plain Diff
graph: Update deployment instructions
Refs.
swh/infra/sysadm-environment#5417
parent
32707f6d
No related branches found
Branches containing commit
No related tags found
1 merge request
!447
graph: Update deployment instructions
Pipeline
#11423
passed
5 months ago
Stage: external
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/sysadm/deployment/howto-deploy-swh-graph.rst
+19
-7
19 additions, 7 deletions
docs/sysadm/deployment/howto-deploy-swh-graph.rst
with
19 additions
and
7 deletions
docs/sysadm/deployment/howto-deploy-swh-graph.rst
+
19
−
7
View file @
85135f09
...
...
@@ -116,27 +116,39 @@ So technically, deploying a new version ``version`` is:
source /opt/swhgraph_venv_${version}/bin/activate
3. Building the rust binary `swh-graph-grpc-serve`
3. Installing swh.graph
.. code-block:: console
pip install swh.graph==${version}
4. Building the rust binary `swh-graph-grpc-serve` in the new venv folder
.. code-block:: console
RUSTFLAGS="-C target-cpu=native" \
cargo install \
--features grpc-server \
swh-graph
cargo install swh-graph-grpc-server@${version} \
--root /opt/swhgraph_venv_${version}
4
. Updating the symbolic link to the new venv
5
. Updating the symbolic link to the new venv
.. code-block:: console
ln -nsf /opt/swhgraph_venv_${version} /opt/swhgraph_venv
mv -v /opt/swhgraph_venv /opt/previous_swhgraph_venv
ln -ns /opt/swhgraph_venv_${version} /opt/swhgraph_venv
5
. Restart the
swh-graph-
grpc
.
service
6
. Restart
ing
the grpc
service
.. code-block:: console
systemctl restart swh-graph-grpc
7. Restarting the rpc service
.. code-block:: console
systemctl restart swh-graph-http
Example:
.. code::
...
...
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