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

Application detection thanks to git remotes with the ability to specify one with a flag #89

Closed
Soulou opened this Issue Feb 26, 2015 · 4 comments

Comments

Projects
None yet
3 participants
@Soulou
Member

Soulou commented Feb 26, 2015

With a convention like

In app myapp

scalingo --target staging ps

→ will look for scalingo-staging remote or a remote with myapp-staging in the repo name

@Soulou

This comment has been minimized.

Show comment
Hide comment
@Soulou

Soulou Aug 24, 2015

Member

Actually, easier than --target, having a --remote flag would allow the user to choose its app according to its git remote.

Git remotes:

scalingo    git@scalingo.com:scalingo-api-production.git
staging         git@scalingo.com:scalingo-api-staging.git
# Production environment
scalingo logs
# Staging environment
scalingo -r staging logs
Member

Soulou commented Aug 24, 2015

Actually, easier than --target, having a --remote flag would allow the user to choose its app according to its git remote.

Git remotes:

scalingo    git@scalingo.com:scalingo-api-production.git
staging         git@scalingo.com:scalingo-api-staging.git
# Production environment
scalingo logs
# Staging environment
scalingo -r staging logs
@yannski

This comment has been minimized.

Show comment
Hide comment
@yannski

yannski Aug 24, 2015

Contributor

It would be nice if the remote name could also be scalingo-staging instead
of just staging, thx
Le 24 août 2015 11:05, "Soulou" notifications@github.com a écrit :

Actually, easier than --target, having a --remote flag would allow the
user to choose its app according to its git remote.

Git remotes:

scalingo git@scalingo.com:scalingo-api-production.git
staging git@scalingo.com:scalingo-api-staging.git

Production environment

scalingo logs

Staging environment

scalingo -r staging logs


Reply to this email directly or view it on GitHub
#89 (comment).

Contributor

yannski commented Aug 24, 2015

It would be nice if the remote name could also be scalingo-staging instead
of just staging, thx
Le 24 août 2015 11:05, "Soulou" notifications@github.com a écrit :

Actually, easier than --target, having a --remote flag would allow the
user to choose its app according to its git remote.

Git remotes:

scalingo git@scalingo.com:scalingo-api-production.git
staging git@scalingo.com:scalingo-api-staging.git

Production environment

scalingo logs

Staging environment

scalingo -r staging logs


Reply to this email directly or view it on GitHub
#89 (comment).

@Soulou

This comment has been minimized.

Show comment
Hide comment
@Soulou

Soulou Aug 25, 2015

Member

We could probably just check both, with a priority on scalingo-staging and a check if staging exists and if it is a scalingo app in a second part.

Member

Soulou commented Aug 25, 2015

We could probably just check both, with a priority on scalingo-staging and a check if staging exists and if it is a scalingo app in a second part.

@Soulou

This comment has been minimized.

Show comment
Hide comment
@Soulou

Soulou Aug 27, 2015

Member

Some examples

scalingo: git@scalingo.com:toto-prod.git
staging: git@scalingo.com:toto-staging.git

scalingo ps 

-> toto-prod

scalingo -r staging ps

-> toto-staging

---------------

scalingo: git@scalingo.com:toto-prod.git
scalingo-staging: git@scalingo.com:toto-staging.git

scalingo -r staging ps

-> toto-staging

----------------

scalingo: git@scalingo.com:toto-prod.git
scalingo-staging: git@scalingo.com:toto-staging.git
staging: git@scalingo.com:toto-staging2.git

scalingo -r staging ps

-> toto-staging2

scalingo -r scalingo-staging ps

-> toto-staging
Member

Soulou commented Aug 27, 2015

Some examples

scalingo: git@scalingo.com:toto-prod.git
staging: git@scalingo.com:toto-staging.git

scalingo ps 

-> toto-prod

scalingo -r staging ps

-> toto-staging

---------------

scalingo: git@scalingo.com:toto-prod.git
scalingo-staging: git@scalingo.com:toto-staging.git

scalingo -r staging ps

-> toto-staging

----------------

scalingo: git@scalingo.com:toto-prod.git
scalingo-staging: git@scalingo.com:toto-staging.git
staging: git@scalingo.com:toto-staging2.git

scalingo -r staging ps

-> toto-staging2

scalingo -r scalingo-staging ps

-> toto-staging

Zyko0 added a commit that referenced this issue Aug 27, 2015

@Zyko0 Zyko0 closed this Aug 31, 2015

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