Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@ FROM node:6.9.4
LABEL version="1.0"
LABEL description="Projects microservice"

RUN apt-get update && \
apt-get upgrade -y

# install aws
RUN apt-get install -y \
ssh \
python \
python-dev \
python-pip

RUN pip install awscli

RUN apt-get install libpq-dev
# Create app directory
RUN mkdir -p /usr/src/app
Expand Down
3 changes: 2 additions & 1 deletion src/routes/projects/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ module.exports = [
status: PROJECT_STATUS.DRAFT,
cancelReason: null,
updatedBy: req.authUser.userId,
});
}).then(() => req.log.debug('project history created for project %d', newProject.id))
.catch(() => req.log.error('project history failed for project %d', newProject.id));
req.log.debug('creating direct project for project %d', newProject.id);
return directProject.createDirectProject(req, body)
.then((resp) => {
Expand Down
2 changes: 1 addition & 1 deletion src/services/busApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function getClient() {
function createEvent(type, message, logger) {
const body = JSON.stringify(message);
logger.debug(`Sending message: ${JSON.stringify(message)}`);
return getClient().post('/v5/bus/events', {
return getClient().post('/bus/events', {
type,
message: body,
})
Expand Down
1 change: 1 addition & 0 deletions src/services/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module.exports = (fapp, logger) => {
if (process.env.NODE_ENV.toLowerCase() === 'test') {
require('../tests/serviceMocks')(app); // eslint-disable-line global-require
} else {
logger.info('initializing RabbitMQ service');
// RabbitMQ Initialization
app.services.pubsub = new RabbitMQService(logger);

Expand Down