1. Node : ">=10.16.0 <=14.x.x",
2. Postgres : version 14
- Run
yarn install
- After the project is installed next step will be database setup.
- Create a PostgreSQL database named
medha_sis
. - Download this database dump from the provided link here: https://drive.google.com/drive/folders/1lSvMJr8AMiD68zqcpr2w0BnZ5N80EzE5
- Restore this database.
- Once the database is restored, run
yarn develop
, and you will be able to access the backend athttp://localhost:1337/
.
yarn build
Login to aws and update your ip in the instance
- Connect with the instance through ssh command, you will get it from the aws .
- cd strapi/sis-backend .
- PM2 list :
it will show the list of running sessions
. - PM2 stop session id
it will stop the session and the session id you will get by step 3
. - sudo git pull .
- npm i
if there are new changes in the package.json
. - PM2 restart session id
this will restart the session with current changes
.
if you do not see any running session after PM2 list run : pm2 start npm --name backend -- run start