Phabricator
Actualitzat 222 Day(s) AgoPúblic

This is the main entry point for the Wiki on Phabricator. Get (back) to the Commons Cloud project.

Documents externs d'ajuda sobre Phabricator:

Questions de configuració d'aquesta instancia:

  • policy.allow-public : posem a "yes" aquest policy per permetre objectes públics, és a dir que no cal estar loggeats per accedir-hi.

Editar permisos de acceso por omisión sobre nuevos proyectos
https://phabricator.femprocomuns.cat/applications/view/PhabricatorProjectApplication/

Can Use Application
    All Users 
Can Configure Application
    Administrators 
Can Create Projects
    Administrators 
Can Lock Project Membership
    Administrators 
Default View Policy
    Project Members 
Default Edit Policy
    Project Members 
Default Join Policy
    All Users

SMTP

Enter in the server and create a json file mail.smtp.json

[
 {
  "key":"CC-Mail",
  "type": "smtp",
  "options": {
   "host": "docker-host",
   "port": 25
  }
 }
]

Now import it

./bin/config set cluster.mailers --stdin < mail.smtp.json

See your config

./bin/config get cluster.mailers

Test the config

Make a file with an email body text hello.txt

./bin/mail  send-test --to <username> --subject hi < /hello.txt

Database backup

Backup

https://secure.phabricator.com/book/phabricator/article/configuring_backups/

Programme the crontab -e

15 5 * * * /var/www/phabricator/phabricator/bin/storage dump | gzip > /var/backups/mysql/backup.sql.gz

Run some mechanism that copies /var/backups/mysql/backup.sql.gz and other data to backup server.

Restore.

Had some problems with the file integrity hash after moving the data directory to the new server.

/var/www/phabricator/phabricator/bin/files integrity --all Showed ok, but web interface threw php error when trying to access files.

/etc/init.d/apache2 restart
/var/www/phabricator/phabricatorbin/phd stop
/var/www/phabricator/phabricatorbin/phd start

Is the problem solved? If not try these..
https://secure.phabricator.com/T12515
/var/www/phabricator/phabricator/bin/files integrity --help

/var/www/phabricator/phabricator/bin/files integrity --compute --all
or
/var/www/phabricator/phabricator/bin/files integrity --strip --all
and
/var/www/phabricator/phabricator/bin/files integrity --overwite --all

Git config

git-http-backend is required.

apk add git-daemon

LDAP config

Base Distinguished Name: ou=users,o=femprocomuns,dc=commonscloud,dc=coop
Username Attribute: uid
Search Attributes: (&(uid=${login})(|(objectclass=inetOrgPerson)))
Realname Attributes: displayName

Install Prototype Apps

You can see non-installed apps when you change the query in the Apps overview. In order to really use them however, one needs to configure the following over ssh:
$/srv/phabricator ./bin/config set phabricator.show-prototypes true
This setting is not saved in the DB as global setting, but local, in: conf/local/local.json

SSH server

apk add openssh-server
/usr/bin/ssh-keygen -A

Start manually

/usr/sbin/sshd
Últim autor
chris
Projectes
Cap
Subscriptors
Cap