Move SSL instructions to README
This commit is contained in:
parent
040932d676
commit
f349321024
31
README.md
31
README.md
|
@ -18,6 +18,37 @@ And open http://localhost:4200 in the browser.
|
|||
|
||||
Alternatively you can run `ember build --watch` and start the server with `waiter/script/server`
|
||||
|
||||
### Running the app in private repos mode
|
||||
|
||||
At the moment Travis CI is available as two separate sites - https://travis-ci.org for Open Source
|
||||
projects and https://travis-ci.com for private projects. travis-web will connect
|
||||
to the Open Source version by default. In order to connect it to the API for private projects
|
||||
you need to run:
|
||||
|
||||
```
|
||||
TRAVIS_PRO=true ember serve --ssl --ssl-key=ssl/server.key --ssl-cert=ssl/server.crt
|
||||
```
|
||||
|
||||
One caveat here is that the command will start server with SSL, so the page will
|
||||
be accessible at https://localhost:4200 (note `https` part).
|
||||
|
||||
### Running on SSL in general
|
||||
|
||||
Sometimes there is a need to test the app with an SSL connection. This is required
|
||||
to make Pusher work when running Travis CI Pro, but it may also be needed in other
|
||||
situations.
|
||||
|
||||
There's already an SSL certificate in the `ssl` directory, which is set for `localhost`
|
||||
host. If you want to use it, you can start the server with:
|
||||
|
||||
```
|
||||
ember serve --ssl --ssl-key=ssl/server.key --ssl-cert=ssl/server.crt
|
||||
```
|
||||
|
||||
In case you want your own certificate, you can follow the instructions posted
|
||||
here: https://gist.github.com/trcarden/3295935 and then point the server to your
|
||||
certificate with `--ssl-key` and `--ssl-cert`.
|
||||
|
||||
### Running tests
|
||||
|
||||
To run a test suite execute:
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
Sometimes there is a need to test the app with an SSL connection, for example for
|
||||
testing pusher on Travis CI Pro.
|
||||
|
||||
In order to run the app with SSL enabled you need to:
|
||||
|
||||
* generate self signed certificate as described here: https://gist.github.com/trcarden/3295935
|
||||
* one difference is that you need to use localhost.ssl, because travis-api
|
||||
doesn't whitelist localhost.ssl at the moment
|
||||
* run Ember app with ssl options: `TRAVIS_PRO=true ember serve --ssl --ssl-key=ssl/server.key --ssl-cert=ssl/server.crt`
|
Loading…
Reference in New Issue
Block a user