Giter Club home page Giter Club logo

phab-dev's Introduction

A docker-compose configuration for running a phabricator server for development

One-time Setup

  1. Clone this repository
  2. Modify the .env file to set desired variables
  • The INSTALLDIR variable should generally not be changed, it's the location within the container where phabricator/arcanist will be installed to.
  • The HOST variable is the hostname for phabricator to be hosted on. Phabricator requires something with a . so this cannot be localhost. Pro-tip: do not use something.dev as the .dev TLD is a valid domain and browsers will likely force loading using HTTPS instead of HTTP.
  • The PORT variable is the port to be exposed on the host, in case other services are running or you don't want to use the default port 80.
  1. Modify the conf/local.json file to configure for your setup
  • Items above the blank line should generally not need configured. JSON does not support comments otherwise this would be indicated directly in the file.
  • Update phabricator.timezone to match your current/local timezone. The value for this should be a valid PHP time zone.
  1. Clone phabricator and arcanist repos within this one (the .gitignore will avoid git repo conflicts).
$ git clone ../phabricator.git
$ git clone ../arcanist.git

Alternative, symlink phabricator and arcanist inside the repo folder

$ ln -s ../phabricator phabricator
$ ln -s ../arcanist arcanist
  1. Start the containers. The first time this runs the container image will be built.
$ docker-compose up
  1. Modify local /etc/hosts or C:\Windows\System32\drivers\etc\hosts and add 127.0.0.1 phabricator.test
  2. Navigate to http://phabricator.test
  3. Address outstanding setup issues such as configuring an Auth Provider
  • These setup issues can be ignored since this is only intended for local development:
    • Alternate File Domain Not Configured
    • Mailers Not Configured
  1. You will probably want to register a new account while remaining logged in as the initial admin. The initial admin account does not have a password. The only way to set a password for this admin account requires sending email, which this development environment does not have configured.
  • Pro tip: You can lower the minimum password length by changing account.minimum-password-length setting.

Shutting down, restarting

When running with docker-compose up the stdin/stdout will be tied to your terminal. If you want to run it in the background use docker-compose up -d.

To stop the services use docker-compose stop.

If you need to modify the .env file after the first time running docker-compose up you will need to re-build using docker-compose build --no-cache.

phab-dev's People

Contributors

neandrake avatar

Stargazers

 avatar  avatar

Watchers

 avatar

phab-dev's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.