Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: support for deploying directly from a git remote #24

Open
Cryptophobia opened this issue Mar 21, 2018 · 2 comments
Open

Comments

@Cryptophobia
Copy link
Member

From @deis-admin on January 19, 2017 21:5

From @olalonde on March 24, 2016 20:25

It would be nice if the controller supported deploying apps by specifying a git remote URL. e.g. deis pull https://github.com/deis/example-nodejs-express.git or deis deploy https://github.com/deis/example-nodejs-express.git. That would make it easier to eventually have a "Deploy to Deis" button like Heroku.

Copied from original issue: deis/deis#4994

Copied from original issue: deis/builder#466

@Cryptophobia
Copy link
Member Author

From @deis-admin on January 19, 2017 21:6

From @bacongobbler on March 24, 2016 20:31

Would this be better resolved with a third-party plugin for the client? pulling a git repo and building it sounds a lot like git push to me, which one could write a plugin around the client:

$ cat << EOF > ~/bin/deis-deploy
#!/bin/bash
APP_NAME=$1
REPO=$2
echo "cloning $REPO to ./$APP_NAME"
git clone $REPO $APP_NAME
cd $APP_NAME
deis git:remote
git push deis master
EOF
$ chmod 755 ~/bin/deis-deploy
$ deis deploy myapp https://github.com/deis/example-nodejs-express.git

@Cryptophobia
Copy link
Member Author

From @deis-admin on January 19, 2017 21:6

From @olalonde on March 24, 2016 22:45

That's just really difficult to do in a browser environment. There's https://github.com/creationix/js-git but it apparently doesn't support GH due to GH's CORS policy. I could always do the git clone/git push server side in deis dash but I'd prefer keeping the code base completely client side because it makes a lot of things simpler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant