Answer the question
In order to leave comments, you need to log in
How to deploy js and css to production, compiling locally and not adding to git?
In one of the projects, I build directly on the server. But this is long, inconvenient, and requires node to be installed on the server. There was no time to understand, so that's it.
Now is the time to figure it out. It is necessary:
1. Compile locally.
2. When deploying, use minification (do not use during development).
3. Don't add compiled files to git.
4. It is desirable to deploy with one command.
Interested in the tools with which this (deploy) can be done.
PS: Now the project from the developer is pushed to the corporate bare repository, and it is pushed to the production server from there. In principle, you can transfer to GitLab if necessary.
Answer the question
In order to leave comments, you need to log in
1 well, compile locally
2 configure in build
3 use gitignore
4 make sh script
I have so.
True, webpack has settings for variables
REM copyapp.cmd
REM test\test\bin\Release\netcoreapp3.1\linux-x64\publish
ssh -i "tsyuha.pem" [email protected]33-122-100-11.eu-central-1.compute.amazonaws.com sudo systemctl stop test
scp -i "tsyuha.pem" test\test\bin\Release\netcoreapp3.1\linux-x64\publish\test [email protected]33-122-100-11.eu-central-1.compute.amazonaws.com:/var/www/www-root/data/www/test.net/test/test
scp -i "tsyuha.pem" test\test\bin\Release\netcoreapp3.1\linux-x64\publish\test.pdb [email protected]33-122-100-11.eu-central-1.compute.amazonaws.com:/var/www/www-root/data/www/test.net/test/test.pdb
scp -i "tsyuha.pem" test\test\bin\Release\netcoreapp3.1\linux-x64\publish\appsettings.json [email protected]33-122-100-11.eu-central-1.compute.amazonaws.com:/var/www/www-root/data/www/test.net/test/appsettings.json
ssh -i "tsyuha.pem" [email protected]33-122-100-11.eu-central-1.compute.amazonaws.com sudo systemctl start test
ssh -i "tsyuha.pem" [email protected]33-122-100-11.eu-central-1.compute.amazonaws.com sudo systemctl -l status test
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question