Skip to content

Commit

Permalink
feat: prepare for ec2 deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
nuromirzak committed Jul 25, 2024
1 parent 0b43a97 commit deb829a
Show file tree
Hide file tree
Showing 12 changed files with 4,156 additions and 68 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/node_modules
/.env
/uploads
/package-lock.json
/public/images/uncompressed
/public/images/uncompressed
.idea/
8 changes: 0 additions & 8 deletions .idea/.gitignore

This file was deleted.

7 changes: 0 additions & 7 deletions .idea/discord.xml

This file was deleted.

15 changes: 0 additions & 15 deletions .idea/inspectionProfiles/Project_Default.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/jsLibraryMappings.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

9 changes: 0 additions & 9 deletions .idea/zerdeleu-express.iml

This file was deleted.

14 changes: 14 additions & 0 deletions aws_bootstrap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
sudo apt-get update -y
sudo DEBIAN_FRONTEND=noninteractive apt-get upgrade -y
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo bash -
sudo apt-get install -y nodejs
sudo npm install -g pm2
sudo apt-get install -y git
git clone https://github.com/nuromirzak/aqyndar.git
cd aqyndar || return
# set up here environment variables manually
npm install
pm2 start app.js --name aqyndar
pm2 startup
pm2 logs aqyndar --lines 100
pm2 flush
2 changes: 1 addition & 1 deletion controllers/authorController.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,4 +279,4 @@ module.exports = {
saveAuthor,
deleteAuthor,
displayAuthor,
}
}
Loading

0 comments on commit deb829a

Please sign in to comment.