这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@pascalw
Copy link
Contributor

@pascalw pascalw commented Mar 23, 2016

As discussed in #1952.

This is just a first stab, I've got a couple of things I would like some feedback on.

is_image_herokuish_based "$IMAGE" && local EXEC_CMD="/exec"

# TODO: should we cleanup the procfile after run?
extract_procfile "$APP"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@josegonzalez @michaelshobbs I noticed that Procfiles are cleaned up after deployment. To be able to read the Procfile on dokku run I had to extract it first. Is this desirable? Unfortunately it yields a log message which is a bit distracting: -----> App Procfile file found (/home/dokku/nodejs/DOKKU_PROCFILE).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could set $DOKKU_QUIET_OUTPUT before the call and unset it afterwards. shrug

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or just set it for that command:

DOKKU_QUIET_OUTPUT=1 extract_procfile "$APP"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah cool, added that.

@pascalw pascalw force-pushed the feature/dokku-run-from-procfile branch 2 times, most recently from 032790d to aa23ef8 Compare March 23, 2016 20:28
@pascalw pascalw force-pushed the feature/dokku-run-from-procfile branch from aa23ef8 to e64daa1 Compare March 23, 2016 20:36
@pascalw pascalw force-pushed the feature/dokku-run-from-procfile branch from 768358b to f073ebe Compare March 24, 2016 07:48

POTENTIAL_PROCFILE_KEY="$1"
PROC_CMD=$(get_cmd_from_procfile "$APP" "$POTENTIAL_PROCFILE_KEY" || echo '')
remove_procfile "$APP"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm now cleaning up the Procfile after using it, just like deploy does.

It would be nice if get_cmd_from_procfile would take care of extracting the Procfile and cleaning it up. Potential downside of that is that if you would call it multiple times it would extract the Procfile every time, but the overhead of that is pretty small I think and also seems unlikely you would call this multiple times. What do you think @josegonzalez @michaelshobbs?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eh, I think this is fine as is.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eh, this seems fine to me.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright fine be me :-)

@josegonzalez
Copy link
Member

@michaelshobbs this seems good to go. Thoughts?

@josegonzalez josegonzalez added this to the v0.6.0 milestone Mar 30, 2016
@michaelshobbs michaelshobbs merged commit cd48505 into dokku:master Jun 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants