Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
madis
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Soluris
madis
Commits
15c7a26d
Commit
15c7a26d
authored
2 years ago
by
Jonathan Foucher
Browse files
Options
Downloads
Patches
Plain Diff
Add notification docs
parent
e5ad3886
No related branches found
No related tags found
No related merge requests found
Pipeline
#43766
failed
2 years ago
Stage: cache
Stage: tests
Stage: quality-assurance
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/installation/5-parametrages-complementaires.md
+14
-0
14 additions, 0 deletions
doc/installation/5-parametrages-complementaires.md
src/Domain/Notification/Command/NotificationsSendCommand.php
+1
-1
1 addition, 1 deletion
src/Domain/Notification/Command/NotificationsSendCommand.php
with
15 additions
and
1 deletion
doc/installation/5-parametrages-complementaires.md
+
14
−
0
View file @
15c7a26d
...
...
@@ -60,3 +60,17 @@ server {
access_log
/var/log/nginx/madis_access.log
;
}
```
##Module notifications
Pour activer le module notifications, rajouter ceci dans le fichier .env :
```
APP_ACTIVATE_NOTIFICATIONS=true
```
Vous devrez ensuite ajouter les deux lignes suivantes à votre cron :
```
* * * * * cd /var/www/madis && $(which php8.1) bin/console notifications:generate >> /var/www/madis/notifications.log
* * * * * cd /var/www/madis && $(which php8.1) bin/console notifications:send >> /var/www/madis/notifications.log
```
En veillant bien à changer le chemin
`/var/www/madis/`
par celui qui vous correspond.
This diff is collapsed.
Click to expand it.
src/Domain/Notification/Command/NotificationsSendCommand.php
+
1
−
1
View file @
15c7a26d
...
...
@@ -124,7 +124,7 @@ class NotificationsSendCommand extends Command
$nextTimeToSend
=
$this
->
getNextTimeToSendFromPreferences
(
$prefs
);
if
(
$nextTimeToSend
->
format
(
'Ymdhi'
)
!==
date
(
'Ymdhi'
))
{
$output
->
writeln
(
'Not the time to send. Programmed time is '
.
$nextTimeToSend
->
format
(
'Ymd
h
i'
)
.
'
a dnc
urrent time is '
.
date
(
'Ymd
h
i'
));
$output
->
writeln
(
'Not the time to send. Programmed time is '
.
$nextTimeToSend
->
format
(
'Ymd
H
i'
)
.
'
and c
urrent time is '
.
date
(
'Ymd
H
i'
));
// Now is not the time to send for this user, abort
continue
;
}
...
...
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