mirror of
https://github.com/szimek/sharedrop.git
synced 2026-06-05 21:02:47 +08:00
Update README.md
This commit is contained in:
parent
ee7d48a13f
commit
298dbcbfe2
23
README.md
23
README.md
@ -19,30 +19,19 @@ The main difference between ShareDrop and AirDrop is that ShareDrop requires Int
|
||||
2. Go to "Security Rules" tab, click "Load Rules" button and select `firebase_rules.json` file.
|
||||
3. Take note of your database URL and its secret, which can be found in "Secrets" tab.
|
||||
2. Run `npm install -g ember-cli` to install Ember CLI.
|
||||
3. Run `ember install` to install app dependencies.
|
||||
3. Run `yarn` to install app dependencies.
|
||||
4. Run `cp .env{.sample,}` to create `.env` file. This file will be used by Foreman to set environment variables when running the app locally.
|
||||
- `SECRET` key is used to encrypt cookies and generate room name based on public IP address for `/` route. It can be any random string - you can generate one using e.g. `date | md5sum`
|
||||
- `NEW_RELIC_*` keys are only necessary in production
|
||||
5. Run `npm run dev` to start the app.
|
||||
5. Run `yarn develop` to start the app.
|
||||
|
||||
### Deployment
|
||||
#### Heroku
|
||||
When deploying to Heroku, use [multi buildpack](https://github.com/heroku/heroku-buildpack-multi.git).
|
||||
|
||||
For new apps:
|
||||
Create a new Heroku app:
|
||||
```
|
||||
heroku create myapp --buildpack https://github.com/heroku/heroku-buildpack-multi.git
|
||||
heroku create <app-name>
|
||||
```
|
||||
|
||||
For existing apps:
|
||||
and push the app to Heroku repo:
|
||||
```
|
||||
heroku config:set BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-multi.git
|
||||
git push heroku master
|
||||
```
|
||||
|
||||
Then run
|
||||
```
|
||||
heroku config:set NPM_CONFIG_PRODUCTION=false
|
||||
```
|
||||
to make Node.js buildpack install development dependencies necessary to build Ember CLI app as well as the production ones.
|
||||
|
||||
It uses the default [Heroku Node.js buildpack](https://github.com/heroku/heroku-buildpack-nodejs) to install Node.js, npm and Node.js packages and then uses [Ember CLI buildpack](https://github.com/szimek/heroku-buildpack-ember-cli-without-webserver) to install Bower packages and build Ember CLI app.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user