Skip to main content

Setup Expose

Overview

This documentation covers how-to setting up expose in Yayasan Vitka development environment.

Prerequisites

You need to set working development server first before using expose.

Installing Expose

$ composer global require "beyondcode/expose":"^1.0"

Configuration

  1. Run:

    $ expose token 00000000-2ee4-4106-91ef-2bc888d66660

    This token is only a dummy token. Please refer to internal documentation for real key.

  2. Publish the configuration

    $ expose publish
  3. Edit configuration

    $ nano ~/.expose/config.php

    replace 'host' => 'sharedwithexpose.com' to 'host' => 'dev.yayasanvitka.id'

Running Expose

To test if expose is running, go to your web project directory, then run:

$ expose share https://siakad.test --subdomain=siakad

This command shares your local https://siakad.test to https://siakad.dev.yayasanvitka.id. Visit the url to see if it is working.