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

Deployment script #19

Open
shailee-m opened this issue Jan 19, 2021 · 11 comments
Open

Deployment script #19

shailee-m opened this issue Jan 19, 2021 · 11 comments
Assignees

Comments

@shailee-m
Copy link
Member

shailee-m commented Jan 19, 2021

We need to deploy the Meteor backend and Vue.js frontend to a single domain, such as example.com. When a user visits "example.com" the Vue.js frontend would render and connect to the Meteor backend on the same server.

We have been using the Meteor Up project (MUP) for deployment. MUP basically builds a Docker container from a Meteor project source code and deploys it to a pre-configured server (with nginx and MongoDB already installed). MUP can be extended to add hooks, custom Docker options, and nginx reverse proxy config, which might be useful for our deployment purposes.

Ideally, deploying the GeriLife client/server code would be as simple as a single command.

@shailee-m
Copy link
Member Author

@brylie Do we have a deployment platform? nginx or apache?

@brylie
Copy link
Member

brylie commented Jan 20, 2021

@shailee-m we should probably just target Docker. Nginx is fine. Let's encrypt, if possible.

@brylie
Copy link
Member

brylie commented Jan 20, 2021

It might be useful to replace the previous wellbeing frontend with this code, e.g. as a Git submodule. I think this new UI supersedes the previous UI that was built with Blaze.

@brylie
Copy link
Member

brylie commented Jan 21, 2021

Could the old platform be updated to include this new UI in it's build?

@shailee-m
Copy link
Member Author

@brylie yes I am trying to redirect to vue from meteor itself. Will update you soon

@brylie
Copy link
Member

brylie commented Jan 26, 2021

Thanks Shailee

@shailee-m
Copy link
Member Author

@brylie Meteor is not rendering custom HTML from meteor server. It is okay if the submodule project is started on a separate server? We can remove the client code from meteor as only meteor server code is required.

@brylie
Copy link
Member

brylie commented Jan 28, 2021

That would be fine as long as the user doesn't have to think about which server they are connecting to when visiting the app in a browser.

@brylie brylie assigned brylie and shailee-m and unassigned brylie Feb 17, 2021
@brylie
Copy link
Member

brylie commented Mar 8, 2021

@shailee-m what is the status of this task?

The goal here is to have a single command that deploys the client and backend code to the same server. The client should be served as the default frontend (deprecating the old Blaze UI). The client will then automatically connect to the backend project running on a different port.

From the end user perspective, they will just access the website as normal. I.e. they should not be aware that the client code is connecting to a backend service on the same domain.

@shailee-m
Copy link
Member Author

@shailee-m what is the status of this task?

The goal here is to have a single command that deploys the client and backend code to the same server. The client should be served as the default frontend (deprecating the old Blaze UI). The client will then automatically connect to the backend project running on a different port.

From the end-user perspective, they will just access the website as normal. I.e. they should not be aware that the client code is connecting to a backend service on the same domain.

@brylie In this PR there is a common deployment command and related docs for deployment. GeriLife/wellbeing#572

Can we connect once to check the meteor deployment part? As my local docker config has some issues, I want to make sure it works in the deployment environment.

The docker deployment for the Vue project was merged in this PR: #28

@brylie
Copy link
Member

brylie commented Mar 12, 2021

@shailee-m I've moved the common deployment scripts to a separate repository, and opened a pull request:

GeriLife/wellbeing-deploy#1

Please feel free to continue from that pull request.

We can have a call today or tomorrow to discuss the issue further.

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

No branches or pull requests

2 participants