Skip to content
Permalink
Browse files

Add env script to Git.

Listen on localhost only.
  • Loading branch information...
n1try committed Aug 15, 2019
1 parent d6e8da3 commit 246f48123b8f714347e20ec8157d4c1f94fc4b39
Showing with 6 additions and 4 deletions.
  1. +1 −2 .gitignore
  2. +1 −1 README.md
  3. +1 −1 app.js
  4. +3 −0 env.sh
@@ -17,5 +17,4 @@ bower_components
.jshintrc
.yo-rc.json
.sass-cache
.env
env.sh
.env
@@ -41,7 +41,7 @@ In order to host Anchr on your own, you need a few things.
1. `$ source env.sh`
2. `$ npm install -g bower`
3. `$ npm install`
4. `$ cd public && bower install && cd..`
4. `$ cd public && bower install && cd ..`

#### Option 1: Run Natively
##### For development
2 app.js
@@ -18,7 +18,7 @@ var app = express();

require('./config/express')(app, config);

app.listen(config.port, function () {
app.listen(config.port, 'localhost', function () {
loggers.default.info('Express server listening on port ' + config.port);
});

3 env.sh
@@ -0,0 +1,3 @@
#!/bin/bash

export $(grep -v '^#' .env | xargs)

0 comments on commit 246f481

Please sign in to comment.
You can’t perform that action at this time.