Hola a todos! les saluda el equipo de AWS UG Perú, para que podamos crear contenido de talleres sigan estos pasos
Vamos a usar un fork de este link, para mi caso seria:
https://gitpod.io#https://github.com/awsugperu/awsugperu-template-workshops
Instalamos todas las dependencias en package.json
npm install
Aqui nos generara la carpeta: "node-modules"
Luego generamos el site de hugo:
npm run build
Esto nos va crear carpetas importantes "public/"
y Por ultimo, podemos podemos levantar el sitio con npx
npx hugo server
Esto nos dara un link publico o privado segun queramos en gitpod.io para previsualizar nuestros cambios
Ignorar los archivos fuente es importante antes de desplegar nuestro site
- revisemos el .gitignore y sino lo tenemos lo creamos
- debe contener la carpeta public, public/ node-modules entre otras que nosotros no queramos pushear a nuestro site
creamos un bucket s3://us-east-1-awsugperu-template-workshops/
- habilitamos static website hosting
- Y si lo deseamos, hacemos el bucket publico, sino lo dejamos privado para hostearlo con AWS Cloudfront o AWS Amplify mas adelante.
Corremos el siguiente comando:
npm run deploy
You can follow instructions from npm website: https://www.npmjs.com/get-npm
npm install
npm run server
or
npm run drafts
to see stubbed in draft pages.
npm run build
will build your content locally and output to ./public/
npm run test
will test the built content for bad links
Visit http://localhost:1313/ to see the site.
As you save edits to a page, the site will live-reload to show your changes.
Any commits to master will auto build and deploy in a couple of minutes. You can see the currently deployed hash at the bottom of the menu panel.
Any commits to a branch will auto build and deploy in a couple of minutes to a custom route named with the branch name. You can see the currently deployed hash at the bottom of the menu panel. An example is the "jenkinsworld" branch would be deployed to https://eksworkshop.com/jenkinsworld/
note: shift-reload may be necessary in your browser to reflect the latest changes.