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

Get Mapknitter running into the Google Cloud v2 #1273

Merged
merged 130 commits into from
May 5, 2020
Merged

Conversation

alaxalves
Copy link
Member

@alaxalves alaxalves commented Apr 26, 2020

Updated rebased version of #1260

Linking #1271 and #1272 as well for tracking.
Fixes #1191

Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!

  • PR is descriptively titled 📑 and links the original issue above 🔗
  • tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR -- or run tests locally with rake test
  • code is in uniquely-named feature branch and has no merge conflicts 📁
  • screenshots/GIFs are attached 📎 in case of UI updation
  • ask @publiclab/mapknitter-reviewers for help, in a comment below

We're happy to help you get this ready -- don't be afraid to ask for help, and don't be discouraged if your tests fail at first!

If tests do fail, click on the red X to learn why by reading the logs.

Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software

Thanks!

@icarito
Copy link
Member

icarito commented May 2, 2020

Hey I think this one is ready to merge it appears to work both in staging/jenkins and appengine!
🎉

// Run Passenger on the given port. In this example, we use port 80,
// the standard HTTP port.
"port": 8080
}
Copy link
Member

Choose a reason for hiding this comment

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

Why do we need this?...

Copy link
Member Author

Choose a reason for hiding this comment

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

It was meant to set Passenger's production port to 8080. Will we still need this? @icarito

Copy link
Member

Choose a reason for hiding this comment

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

No I don't think we still need this. At least neither Gcloud nor our docker-compose setup we have running on Jenkins use this. I have removed it from this branch, unless you see a use for it.

@icarito icarito added the ready label May 2, 2020

class AllHandler(webapp.RequestHandler):
def get(self):
self.redirect("https://tycho.media.mit.edu/warps", True)
Copy link
Member

Choose a reason for hiding this comment

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

At some point we should use an env variable here too

Copy link
Member

Choose a reason for hiding this comment

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

Agreed!

Copy link
Member

Choose a reason for hiding this comment

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

In fact this is the wrong URL, your comment made me notice. I'll fix it, sorry!

Copy link
Member

Choose a reason for hiding this comment

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

ahh okay this is file isn't needed at all it was an attempt to use the App Engine way of redirecting.

Copy link
Member

Choose a reason for hiding this comment

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

Good catch, I just remove this file from the main branch. Also the Environment variable is still pending, but it would be done in routes.rb

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

Successfully merging this pull request may close these issues.

Cloud exporter publication roadmap