Skip to content
Snippets Groups Projects
Commit 2d708954 authored by Jan Mach's avatar Jan Mach
Browse files

Unpolished proof of concept for the use of Vagrant for local Mentat development.

Original idea wa to use Docker for this purpose, but it turned out full
featured virtual server will be much better suited for this task due to
the comlexity of the whole environment.

(Redmine issue: #7041)
parent a3572531
No related branches found
No related tags found
No related merge requests found
......@@ -220,7 +220,7 @@ Install - pip
.. _section-installation-prerequisites-postgresql:
Install - PostgreSQL 12
Install - PostgreSQL 13
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
* `Documentation <https://www.postgresql.org/docs/>`__
......@@ -229,10 +229,10 @@ Install - PostgreSQL 12
.. code-block:: shell
# Run these commands as root:
$ echo "deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list
$ echo "deb http://apt.postgresql.org/pub/repos/apt/ buster-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list
$ wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
$ apt update
$ apt install postgresql-12 postgresql-12-ip4r postgresql-client-12 postgresql-server-dev-12 libpq-dev pgadmin4
$ apt install postgresql-13 postgresql-13-ip4r postgresql-client-13 postgresql-server-dev-13 libpq-dev pgadmin4
.. _section-installation-prerequisites-yarn:
......
......@@ -6,6 +6,10 @@
# Use of this source is governed by the MIT license, see LICENSE file.
#-------------------------------------------------------------------------------
PG_MAJOR=13
NODE_MAJOR="12"
YARN_VERSION="1.22.5"
# Master switch for Debian system scripts.
MENTAT_IS_ENABLED=yes
#MENTAT_IS_ENABLED=no
......@@ -21,7 +25,7 @@ MENTAT_GROUP=mentat
# aware, that this variable should be an array.
MENTAT_CHECKS_MAIL_TO=(root)
# Emails for Mentat system
# Emails for Mentat system
MENTAT_ADMINS_MAIL_TO=(root)
# Base URL for Mentat`s web interface Hawat (with trailing slash).
......
File moved
[Unit]
Description=Sendria - Mailtrap service for development
After=network.target
[Service]
Type=simple
ExecStart=/var/mentat/venv/bin/python -m sendria --db /tmp/mails.sqlite --http-ip 0.0.0.0
Restart=always
[Install]
WantedBy=multi-user.target
......@@ -19,12 +19,11 @@ binary:
mkdir -p debian/mentat-ng/usr/share/bash-completion/completions
cp -r ../conf/* debian/mentat-ng/etc/mentat/
cp -r ../scripts debian/mentat-ng/etc/mentat/
cp -r ../migrations-events debian/mentat-ng/etc/mentat/
cp -r ../etc/bash_completion.d/* debian/mentat-ng/usr/share/bash-completion/completions
cp -r ../etc/default debian/mentat-ng/etc/
cp -r ../etc/init.d debian/mentat-ng/etc/
cp -r ../etc/systemd debian/mentat-ng/etc/
cp ../etc/systemd/system/mentat.service debian/mentat-ng/etc/systemd/system
if [ -L 'debian/mentat-ng/etc/mentat/migrations-events/.env' ]; then rm -f 'debian/mentat-ng/etc/mentat/migrations-events/.env'; fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment