Skip to content

Multiple services example for flexible environment #499

Closed

Description

@travisoneill

You should have one. It would have made my deployment a lot easier. I will be happy to make a PR if it is something that you want to add.

Activity

  1. theacodes commented on Sep 6, 2016

    @theacodes
    Contributor

    Sounds like a great idea. It seems like I'd like to schedule this as something to do before App Engine flex goes GA. 👍

  2. travisoneill commented on Sep 8, 2016

    @travisoneill
    ContributorAuthor

    Opened up a PR. I included Express servers in the architecture as well so it could be useful as an example of how to deploy multiple runtimes in one repo as well too. Would you like me to keep that structure or use Python only since this is the Python docs repo?

  3. theacodes commented on Sep 8, 2016

    @theacodes
    Contributor

    I think it would be best to stick to Python as we're not setup to appropriately test node.js in this repo.

  4. travisoneill commented on Sep 8, 2016

    @travisoneill
    ContributorAuthor

    Will switch it over.

  5. travisoneill commented on Sep 8, 2016

    @travisoneill
    ContributorAuthor

    Also, is there a repo for the code that handles python in the Google Cloud Shell? You guys have some missing parens on print calls that throw syntax errors (but no lost functionality) on almost every line when running in a python 3 virtual environment.

  6. theacodes commented on Sep 8, 2016

    @theacodes
    Contributor

    Do you have a stacktrace? I can hand it off to the appropriate team.

  7. travisoneill commented on Sep 8, 2016

    @travisoneill
    ContributorAuthor

    Coming from stdin. not sure how to trace deeper but clear what the error is:

    Welcome to Cloud Shell! Type "help" to get started.
    travis_h_oneill@algorithm-arena:~$ cd ~/src/algorithm-arena/default
    travis_h_oneill@algorithm-arena:~/src/algorithm-arena/default$ cd flask
    travis_h_oneill@algorithm-arena:~/src/algorithm-arena/default/flask$ source evv/bin/activate
    -bash: evv/bin/activate: No such file or directory
    travis_h_oneill@algorithm-arena:~/src/algorithm-arena/default/flask$ source env/bin/activate                                                                             
      File "<stdin>", line 7
        print config.get('core', 'project')
                   ^
    SyntaxError: invalid syntax
    (env) travis_h_oneill@cloudshell:~/src/algorithm-arena/default/flask$ echo 'hi'
    hi
      File "<stdin>", line 7
        print config.get('core', 'project')
                   ^
    SyntaxError: invalid syntax
    (env) travis_h_oneill@cloudshell:~/src/algorithm-arena/default/flask$ echo 'python'
    python
      File "<stdin>", line 7
        print config.get('core', 'project')
                   ^
    SyntaxError: invalid syntax
    (env) travis_h_oneill@cloudshell:~/src/algorithm-arena/default/flask$
  8. theacodes commented on Sep 9, 2016

    @theacodes
    Contributor

    that is really strange. Happens with any Python 3 virtualenv?

  9. jerjou commented on Sep 9, 2016

    @jerjou
    Contributor

    Looks like this is part of the cloud shell bashrc. I submitted a PR google/appengine-jenkins#2

  10. theacodes commented on Sep 9, 2016

    @theacodes
    Contributor

    @jerjou nice! I didn't even know that repo existed. Seems weird that it's on Google and not GoogleCloudPlatform.

  11. travisoneill commented on Sep 12, 2016

    @travisoneill
    ContributorAuthor

    Thats great! I was stumped after searching the entire GCP repo for that one line of code and never getting a hit.

  12. travisoneill commented on Sep 14, 2016

    @travisoneill
    ContributorAuthor

    @jonparrott Switched over to all Python (w/ a few lines of JS on the front) and pushed. Please let me know if you would like me to make any changes.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    🚨This issue needs some love.triage meI really want to be triaged.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions