Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Adds volume linking to the web image #128

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions commands/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ function createDockerCompose(procfile, addons, mountDir) {

// add a 'shell' process for persistent changes, one-off tasks
processServices.shell = _.extend(_.cloneDeep(processServices.web), {
command: 'bash',
volumes: [`.:${ volumeMount }`]
command: 'bash'
});

// zip all the addons into an object
Expand All @@ -126,6 +125,7 @@ function createDockerCompose(procfile, addons, mountDir) {
return _.pick({
build: '.',
command: `bash -c '${command}'`,
volumes: [`.:${ mountDir }`],
working_dir: mountDir,
dockerfile: undefined, // TODO: docker.filename (once docker-compose 1.3.0 is released)
environment: _.extend(port ? { PORT: port } : {}, envs),
Expand Down