Browse Source

docs: document how to run the portal

pull/1319/head
Sérgio Ramos 4 years ago
parent
commit
2787f051e0
4 changed files with 40 additions and 1 deletions
  1. +0
    -0
      code_of_conduct.md
  2. +0
    -0
      contributing.md
  3. +4
    -1
      packages/my-joy-instances/src/state/apollo-client.js
  4. +36
    -0
      running.md

CODE_OF_CONDUCT.md → code_of_conduct.md View File


CONTRIBUTING.md → contributing.md View File


+ 4
- 1
packages/my-joy-instances/src/state/apollo-client.js View File

@@ -28,7 +28,10 @@ export default (opts = {}) => {
credentials: 'same-origin',
fetch,
headers: {
'X-CSRF-Token': global.cookie.replace(/(?:(?:^|.*;\s*)crumb\s*=\s*([^;]*).*$)|^.*$/, '$1')
'X-CSRF-Token': global.cookie.replace(
/(?:(?:^|.*;\s*)crumb\s*=\s*([^;]*).*$)|^.*$/,
'$1'
)
}
}),
...opts

+ 36
- 0
running.md View File

@@ -0,0 +1,36 @@
# How to run the Joyent Portal

#### Requisites

- [ ] [Install node.js](https://nodejs.org/en/download/current/)
- [ ] [Install Yarn](https://yarnpkg.com/en/docs/install)
- [ ] [Setup node-triton](https://github.com/joyent/node-triton#setup)
## via [webconsole-instances](https://github.com/joyent/webconsole-instances)

[webconsole-instances](https://github.com/joyent/webconsole-instances) is the stable version of the portal. It gets updated with stable releases from [joyent-portal](http://github.com/yldio/joyent-portal).

```
➜ git clone https://github.com/joyent/webconsole-instances
➜ cd webconsole-instances
➜ yarn
➜ ./gen-keys.sh
➜ ./setup.sh # use instructions from previous step
➜ sed -i -e 's/production/development/g' _env
➜ docker-compose -f local-compose.yml up
➜ # visit http://localhost:80
```

## via [joyent-portal](http://github.com/yldio/joyent-portal)

[joyent-portal](http://github.com/yldio/joyent-portal) is the unstable and in-development version of the portal. It may be broken at any point in time.

```
➜ git clone https://github.com/yldio/joyent-portal
➜ cd joyent-portal
➜ yarn
➜ yarn run build:bundle
➜ cd bundle
➜ eval "$(triton env <your profile>)"
➜ yarn run start
```

Loading…
Cancel
Save