diff --git a/app.js b/app.js index f63258880..259523572 100644 --- a/app.js +++ b/app.js @@ -6,7 +6,7 @@ const Musician = require('./models/musician'); const musicianRoutes = require('./routes/musician'); const app = express(); -const port = process.env.PORT || 3001; +const port = process.env.PORT || 8080; // include routes app.use('/musician', musicianRoutes); @@ -28,4 +28,4 @@ const server = app.listen(port, () => { console.log("Server started on port " + port); }); -module.exports = server; \ No newline at end of file +module.exports = server; diff --git a/buildspec.yml b/buildspec.yml new file mode 100644 index 000000000..9e0aef582 --- /dev/null +++ b/buildspec.yml @@ -0,0 +1,11 @@ +version: 0.2 + +phases: + install: + commands: + # Install dependencies needed for running tests + - npm install + - npm start + + # Upgrade AWS CLI to the latest version + - pip install --upgrade awscli