Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Jabis Sevón
/
mmjab
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
12e5d58a
authored
2025-01-25 17:03:16 +0100
by
Jabis Sevón
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
DATABASE TO PG
1 parent
f719f88d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
.env.example
src/main.rs
.env.example
View file @
12e5d58
MATTERMOST_DATA_DIRECTORY="/opt/mattermost/data/"
DATABASE_NAM
E="mattermost"
DATABASE_
USER="mattermost"
PGDATABAS
E="mattermost"
PG
USER="mattermost"
PGPASSWORD=""
DATABASE_
HOST="127.0.0.1"
DATABASE_
PORT="5432"
PG
HOST="127.0.0.1"
PG
PORT="5432"
RETENTION_DAYS="730"
FILE_BATCH_SIZE="500"
...
...
src/main.rs
View file @
12e5d58
...
...
@@ -28,7 +28,7 @@ async fn main() {
Arg
::
new
(
"db_name"
)
.short
(
'n'
)
.long
(
"db-name"
)
.env
(
"
DATABASE_NAM
E"
)
.env
(
"
PGDATABAS
E"
)
.help
(
"Database name"
)
.required
(
true
),
)
...
...
@@ -36,7 +36,7 @@ async fn main() {
Arg
::
new
(
"db_user"
)
.short
(
'u'
)
.long
(
"db-user"
)
.env
(
"
DATABASE_
USER"
)
.env
(
"
PG
USER"
)
.help
(
"Database user"
)
.required
(
true
),
)
...
...
@@ -52,7 +52,7 @@ async fn main() {
Arg
::
new
(
"db_host"
)
.short
(
'h'
)
.long
(
"db-host"
)
.env
(
"
DATABASE_
HOST"
)
.env
(
"
PG
HOST"
)
.help
(
"Database host"
)
.required
(
true
),
)
...
...
@@ -60,7 +60,7 @@ async fn main() {
Arg
::
new
(
"db_port"
)
.short
(
'P'
)
.long
(
"db-port"
)
.env
(
"
DATABASE_
PORT"
)
.env
(
"
PG
PORT"
)
.help
(
"Database port"
)
.required
(
true
),
)
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment