Skip to content

Commit

Permalink
adjust port
Browse files Browse the repository at this point in the history
  • Loading branch information
igodorogea committed Jan 19, 2017
1 parent 6a8c3ff commit fb63543
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 21 deletions.
18 changes: 0 additions & 18 deletions public/app/artists/_md-buttons-test.html

This file was deleted.

3 changes: 2 additions & 1 deletion public/app/index.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ angular.module('musicLibrary',
function routerConfig($stateProvider, $urlRouterProvider) {
$stateProvider
.state('home', {
url: '/'
url: '/',
template: '<h1>Welcome</h1>'
})

$urlRouterProvider.otherwise('/')
Expand Down
4 changes: 2 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const Artist = require('./models').Artist
const Album = require('./models').Album
const Song = require('./models').Song

const port = '3000'
const port = process.env.PORT || '3000'
app.set('port', port)

const server = http.createServer(app)
Expand All @@ -15,7 +15,7 @@ sequelize
// .then(() => createDummyData())
.then(function () {
server.listen(port)
console.log('Listening on 3000...')
console.log('Listening on ' + port + '...')
})
.catch(function (error) {
console.warn(error)
Expand Down

0 comments on commit fb63543

Please sign in to comment.