Skip to content

Commit

Permalink
Ajustando arquivos de deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardoKroetz committed May 18, 2024
1 parent 3864266 commit 2387e73
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
16 changes: 10 additions & 6 deletions appspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,26 @@ os: linux
files:
- source: HotelSistem/Hotel.Domain/api
destination: /var/www/api
- source: /
destination: /var/www/hotelsistem
- source: scripts/
destination: /var/www/hotelsistem/scripts
- source: buildspec.yml
destination: /var/www/hotelsistem/buildspec.yml
- source: HotelSistem.service
destination: /var/www/hotelsistem/HotelSistem.service
hooks:
BeforeInstall:
- location: scripts/before_install.sh
- location: /var/www/hotelsistem/scripts/before_install.sh
timeout: 300
runas: root
AfterInstall:
- location: scripts/after_install.sh
- location: /var/www/hotelsistem/scripts/after_install.sh
timeout: 300
runas: root
ApplicationStart:
- location: scripts/start_server.sh
- location: /var/www/hotelsistem/scripts/start_server.sh
timeout: 300
runas: root
ValidateService:
- location: scripts/validate_service.sh
- location: /var/www/hotelsistem/scripts/validate_service.sh
timeout: 300
runas: root
2 changes: 1 addition & 1 deletion scripts/after_install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
# Create the directory for the application if it doesn't exist
mkdir -p /var/www/hotelsistem
mkdir -p /var/www/api

# Copy the service file to the systemd directory
cp /var/www/hotelsistem/scripts/hotelsistem.service /etc/systemd/system/hotelsistem.service
Expand Down

0 comments on commit 2387e73

Please sign in to comment.