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

Automate code deploy from Git lab to AWS EC2 instance #94

Open
KG-github123 opened this issue Feb 15, 2021 · 0 comments
Open

Automate code deploy from Git lab to AWS EC2 instance #94

KG-github123 opened this issue Feb 15, 2021 · 0 comments

Comments

@KG-github123
Copy link

[When I start to build pipeline it gets this error]

My appspec.yml file is
version: 0.0
os: Linux
files:

  • source: /
    destination: /mw
    hooks:
    BeforeInstall:
    • location: scripts/stop.sh
      timeout: 300
      runas: ubuntu
      AfterInstall:
    • location: scripts/start.sh
      timeout: 300
      runas: ubuntu

start.sh script is
#!/bin/bash
pm2 start mw-file-upload-cicd

stop.sh script is
#!/bin/bash
pm2 stop mw-file-upload-cicd

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

1 participant