Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
how to enable live reload
Browse files Browse the repository at this point in the history
  • Loading branch information
luebken committed Jun 24, 2014
1 parent 7257f2e commit 0cbb6c5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,7 @@ ADD . /home/mean
# currently only works for development
ENV NODE_ENV development

EXPOSE 3000
# Port 3000 for server
# Port 35729 for livereload
EXPOSE 3000 35729
CMD ["grunt"]
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,18 +83,22 @@ If you encounter any problem try the Troubleshooting section.
* Install [Fig](https://github.com/orchardup/fig)

* Local development and testing with fig:
```
```bash
$ fig up
```

* Local development and testing with just Docker:
```
```bash
$ docker build -t mean .
$ docker run -p 27017:27017 -d --name db mongo
$ docker run -p 3000:3000 --link db:db_1 mean
$
```

* To enable live reload forward 35729 port and mount /app and /public as volumes:
```bash
$ docker run -p 3000:3000 -p 35729:35729 -v /Users/mdl/workspace/mean-stack/mean/public:/home/mean/public -v /Users/mdl/workspa/mean-stack/mean/app:/home/mean/app --link db:db_1 mean
```

## Getting Started With MEAN.JS
You have your application running but there are a lot of stuff to understand, we recommend you'll go over the [Offical Documentation](http://meanjs.org/docs.html).
Expand Down

0 comments on commit 0cbb6c5

Please sign in to comment.