4 ms·
I should preface I'm a solo-founder with a few side-projects(nothing big). Thus you have to usually make due with "just good enough" and move on to the other 10
by rawoke083600 5y ago
I should preface I'm a solo-founder with a few side-projects(nothing big). Thus you have to usually make due with "just good enough" and move on to the other 10 tasks awaiting you.
My deploy script (it's just 5-10 lines of bash) mostly for some of my "old" angularjs(yes v1)
1) merge all js files (cat file.js >> app.js)
2) make sure any files that request/include JS and HTML files are not cached (generate new random ?rcc=random-num)
find -type f | egrep "html|js" | xargs sed -Ei s/"rcc=([0-9]+)"/rcc=$RANDOM/g
3) ssh-copy over to server
Sexy ? Absolutely not , does it work ? Like a dream :)
Having the ability to just type "./deploy-aws.sh" and be done in 5 sec is an amazing ability to have for you project. Especially if you are SOLO founder.
- smackeyacky 5y agoThought about using s3? I have static content I keep version controlled in github with a git hub action. When I push to the production branch, a github action does an aws s3 sync. My web service pulls static content from the s3 bucket. It works well and i really like github actions for this kind of work.
- BillinghamJ 5y agoPerhaps you'd like to package your preprocessor into something to make Personal Home Pages...