Move SSL instructions to README

This commit is contained in:
Piotr Sarnacki 2016-01-06 12:02:09 +01:00
parent 040932d676
commit f349321024
2 changed files with 34 additions and 12 deletions

View File

@ -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:

View File

@ -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`