Firstly, sorry for my not well english:)
I have to do aws pipeline on EC2 instance for back-nodejs, front-vue in different folders, i'm new to this. Previously i run two docker images with front and back on instance and it woked . Help for torturial with aws interface i created aws pipeline but it didn't work, i had an error on deploy procces : Script does not exist at specified location: /opt/codedeploy-agent/deployment-root/............./deployment-archive/script/application_start.sh
I think i don't understand some procces CodeBuild and CodeDeploy , first-> buildspec.yml :
- why pre_build, build, after_build ?if it could be simple build...
- artefacts: what means that files we write there...like "/** or**/" or more concretic path ? if they fail to S3 backet what happened then?is they used or not?
- this build influence on deploy process or not?;
second-> appspec.yml :
- do we need to unpack the package if we did it in build process?
- BeforeInstall,AfterInstall,ApplicationStart - where is the best place to unpack packages? can i do it of one this?
what stage of CodeDeploy code from s3 backet send to EC2 instance? is it sent there compiled or not? Maybe i have incorrect routes to run app?....but i'm not sure..... what routes i have to do for deploy this instance, how to write startup commands correctly and they routes? i have 2 folders-> front and back, i have to unpacket packages and run all of they: front:
npm install npm --prefix front run dev
back:
npm install npm --prefix back run start
can i run they in one image or i have to do it in different images?
Please tell me where to start? :)