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

Install NGINX and run the application in it through the deployment script. #3

Open
jac1013 opened this issue Aug 31, 2017 · 4 comments
Assignees

Comments

@jac1013
Copy link
Member

jac1013 commented Aug 31, 2017

No description provided.

@jac1013
Copy link
Member Author

jac1013 commented Aug 31, 2017

@rkmax maybe you want to work on this one later :).

@rkmax
Copy link
Member

rkmax commented Aug 31, 2017

Are you provisioning the thing via deployment.sh, right? maybe you can split down this deplyment.sh into a granular process

scripts/init.sh

  • scripts/init/nvm.sh
  • scripts/init/pm2.sh
  • scripts/init/nginx.sh

scripts/update.sh (optional)

  • scripts/update/nvm.sh
  • scripts/update/pm2.sh
  • scripts/update/nginx.sh

scripts/apps/cognito-server

  • scripts/apps/cognito-server/install.sh
  • scripts/apps/cognito-server/update.sh

I think I went too far 😂 but that is the idea also if you can provide some config file .cognito-server which is basically a bash compatible file le the example below that will be imported by your scripts

export KEY1=value1
export KEY2=value2

Examples

$ scripts/yo.sh cognito-server init
$ scripts/yo.sh cognito-server update
$ scripts/yo.sh cognito-server deploy

@jac1013
Copy link
Member Author

jac1013 commented Aug 31, 2017

I like the idea, maybe we need to create an issue for this one, right?

@rkmax
Copy link
Member

rkmax commented Aug 31, 2017

Yes, and just use this issue to create the dep nginx

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