Skip to content
GitLab
Explorer
Connexion
S'inscrire
Navigation principale
Rechercher ou aller à…
Projet
P
parlote-facil
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Wiki
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Extraits de code
Compilation
Pipelines
Jobs
Planifications de pipeline
Artéfacts
Déploiement
Releases
Registre de paquets
Registre de conteneur
Registre de modèles
Opération
Environnements
Modules Terraform
Surveillance
Incidents
Analyse
Données d'analyse des chaînes de valeur
Analyse des contributeurs
Données d'analyse CI/CD
Données d'analyse du dépôt
Expériences du modèle
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
facil
parlote-facil
Validations
ce728f6b
Valider
ce728f6b
rédigé
il y a 12 ans
par
Jonne Haß
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
add possibility to embed a resque worker into the unicorn process
parent
89c1fd5f
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Modifications
3
Masquer les modifications d'espaces
En ligne
Côte à côte
Affichage de
3 fichiers modifiés
config/defaults.yml
+2
-0
2 ajouts, 0 suppression
config/defaults.yml
config/diaspora.yml.example
+5
-1
5 ajouts, 1 suppression
config/diaspora.yml.example
config/unicorn.rb
+8
-0
8 ajouts, 0 suppression
config/unicorn.rb
avec
15 ajouts
et
1 suppression
config/defaults.yml
+
2
−
0
Voir le fichier @
ce728f6b
...
@@ -22,6 +22,8 @@ defaults:
...
@@ -22,6 +22,8 @@ defaults:
region
:
region
:
image_redirect_url
:
image_redirect_url
:
pubsub_server
:
'
https://pubsubhubbub.appspot.com/'
pubsub_server
:
'
https://pubsubhubbub.appspot.com/'
unicorn
:
embed_resque_worker
:
false
privacy
:
privacy
:
jquery_cdn
:
true
jquery_cdn
:
true
google_analytics_key
:
google_analytics_key
:
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
config/diaspora.yml.example
+
5
−
1
Voir le fichier @
ce728f6b
...
@@ -99,7 +99,11 @@ configuration:
...
@@ -99,7 +99,11 @@ configuration:
## Diaspora is only tested against this default pubsub server.
## Diaspora is only tested against this default pubsub server.
## You likely don't want to change this.
## You likely don't want to change this.
#pubsub_server: 'https://pubsubhubbub.appspot.com/'
#pubsub_server: 'https://pubsubhubbub.appspot.com/'
unicorn:
## Embed a resque worker inside the unicorn process, useful for
## minimal Heroku setups
#embed_resque_worker: true
## Settings probably affecting the privacy of your users
## Settings probably affecting the privacy of your users
privacy:
privacy:
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
config/unicorn.rb
+
8
−
0
Voir le fichier @
ce728f6b
...
@@ -12,6 +12,8 @@ preload_app true
...
@@ -12,6 +12,8 @@ preload_app true
# How long to wait before killing an unresponsive worker
# How long to wait before killing an unresponsive worker
timeout
30
timeout
30
@resque_pid
=
nil
#pid '/var/run/diaspora/diaspora.pid'
#pid '/var/run/diaspora/diaspora.pid'
#listen '/var/run/diaspora/diaspora.sock', :backlog => 2048
#listen '/var/run/diaspora/diaspora.sock', :backlog => 2048
...
@@ -29,6 +31,12 @@ before_fork do |server, worker|
...
@@ -29,6 +31,12 @@ before_fork do |server, worker|
if
!
AppConfig
.
single_process_mode?
if
!
AppConfig
.
single_process_mode?
Resque
.
redis
.
client
.
disconnect
Resque
.
redis
.
client
.
disconnect
end
end
if
AppConfig
.
environment
.
unicorn
.
embed_resque_worker?
# Clean up Resque workers killed by previous deploys/restarts
Resque
.
workers
.
each
{
|
w
|
w
.
unregister_worker
}
@resque_pid
||=
spawn
(
'bundle exec rake resque:work QUEUES=*'
)
end
old_pid
=
'/var/run/diaspora/diaspora.pid.oldbin'
old_pid
=
'/var/run/diaspora/diaspora.pid.oldbin'
if
File
.
exists?
(
old_pid
)
&&
server
.
pid
!=
old_pid
if
File
.
exists?
(
old_pid
)
&&
server
.
pid
!=
old_pid
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter