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

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
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
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
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
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 Zyko0 added a commit that referenced this issue Aug 27, 2015
@Zyko0 Zyko0 Issue #89: Add of a global --remote flag to be able to choose environ…
…ment of work instead of app
6d14d2c
@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