Skip to content

Commit fcc2a24

Browse files
author
epriestley
committedJun 5, 2014
Update Aphlict documentation for new server management commands
Summary: The docs are now a little out of date. Also //possibly// we should call this `bin/notifications` or something, maybe? Test Plan: read Reviewers: joshuaspence Reviewed By: joshuaspence Subscribers: epriestley Differential Revision: https://secure.phabricator.com/D9398
1 parent 8a7a7dc commit fcc2a24

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed
 

‎scripts/install/update_phabricator.sh

+6
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ git pull
3030
# Stop daemons.
3131
$ROOT/phabricator/bin/phd stop
3232

33+
# If running the notification server, stop it.
34+
# $ROOT/phabricator/bin/aphlict stop
35+
3336
# Stop the webserver (apache, nginx, lighttpd, etc). This command will differ
3437
# depending on which system and webserver you are running: replace it with an
3538
# appropriate command for your system.
@@ -48,3 +51,6 @@ sudo /etc/init.d/httpd start
4851

4952
# Restart daemons.
5053
$ROOT/phabricator/bin/phd start
54+
55+
# If running the notification server, start it.
56+
# $ROOT/phabricator/bin/aphlict start

‎src/applications/notification/setup/PhabricatorSetupCheckAphlict.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ protected function executeChecks() {
3737
->addRelatedPhabricatorConfig('notification.server-uri')
3838
->addCommand(
3939
pht(
40-
"(To start or restart the server, run this command.)\n".
41-
"phabricator/ $ sudo ./bin/aphlict"));
40+
"(To start the server, run this command.)\n".
41+
"phabricator/ $ sudo ./bin/aphlict start"));
4242

4343
return;
4444
}
@@ -57,7 +57,7 @@ protected function executeChecks() {
5757
->setShortName(pht('Notification Server Version'))
5858
->setName(pht('Notification Server Out of Date'))
5959
->setMessage($message)
60-
->addCommand('phabricator/ $ sudo ./bin/aphlict');
60+
->addCommand('phabricator/ $ sudo ./bin/aphlict start');
6161
}
6262

6363
}

‎src/docs/user/userguide/notifications.diviner

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Phabricator implements realtime notifications using a Node.js server called
2626
"Aphlict". To run it:
2727

2828
- Install node.js.
29-
- Run `bin/aphlict` (this script must be run as root).
29+
- Run `bin/aphlict start` (this script must be run as root).
3030

3131
The server must be able to listen on port **843** and port **22280** for Aphlict
3232
to work. You can change the latter port in the `notification.client-uri` config,
@@ -67,7 +67,7 @@ NOTE: This is cumbersome. There will be better testing tools at some point.
6767

6868
You can run `aphlict` in the foreground to get output to your console:
6969

70-
phabricator/ $ sudo ./bin/aphlict --foreground
70+
phabricator/ $ sudo ./bin/aphlict debug
7171

7272
You can run `support/aphlict/client/aphlict_test_client.php` to connect to the
7373
Aphlict server from the command line. Messages the client receives will be

0 commit comments

Comments
 (0)
Failed to load comments.