mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-05-07 20:16:24 +02:00
Merge branch 'Robaum-0.4.0' into 0.4.0
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
FROM dockerfile/nodejs
|
||||
FROM node:0.10
|
||||
|
||||
MAINTAINER Matthias Luebken, matthias@catalyst-zero.com
|
||||
|
||||
@@ -20,7 +20,7 @@ RUN bower install --config.interactive=false --allow-root
|
||||
# Make everything available for start
|
||||
ADD . /home/mean
|
||||
|
||||
# currently only works for development
|
||||
# Set development environment as default
|
||||
ENV NODE_ENV development
|
||||
|
||||
# Port 3000 for server
|
||||
|
||||
@@ -101,12 +101,12 @@ $ grunt test:client
|
||||
|
||||
## Development and deployment With Docker
|
||||
|
||||
* Install [Docker](http://www.docker.com/)
|
||||
* Install [Fig](https://github.com/orchardup/fig)
|
||||
* Install [Docker](https://docs.docker.com/installation/#installation)
|
||||
* Install [Compose](https://docs.docker.com/compose/install/)
|
||||
|
||||
* Local development and testing with fig:
|
||||
* Local development and testing with compose:
|
||||
```bash
|
||||
$ fig up
|
||||
$ docker-compose up
|
||||
```
|
||||
|
||||
* Local development and testing with just Docker:
|
||||
|
||||
2
config/env/development.js
vendored
2
config/env/development.js
vendored
@@ -2,7 +2,7 @@
|
||||
|
||||
module.exports = {
|
||||
db: {
|
||||
uri: 'mongodb://localhost/mean-test',
|
||||
uri: process.env.MONGOHQ_URL || process.env.MONGOLAB_URI || 'mongodb://' + (process.env.DB_1_PORT_27017_TCP_ADDR || 'localhost') + '/mean-test',
|
||||
options: {
|
||||
user: '',
|
||||
pass: ''
|
||||
|
||||
4
config/env/test.js
vendored
4
config/env/test.js
vendored
@@ -2,13 +2,13 @@
|
||||
|
||||
module.exports = {
|
||||
db: {
|
||||
uri: 'mongodb://localhost/mean-test',
|
||||
uri: process.env.MONGOHQ_URL || process.env.MONGOLAB_URI || 'mongodb://' + (process.env.DB_1_PORT_27017_TCP_ADDR || 'localhost') + '/mean-test',
|
||||
options: {
|
||||
user: '',
|
||||
pass: ''
|
||||
}
|
||||
},
|
||||
port: 3001,
|
||||
port: process.env.PORT || 3001,
|
||||
app: {
|
||||
title: 'MEAN.JS - Test Environment'
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user