- Abrimos una consola y en cualquier ubicación ejecutamos:
gem install jekyll bundler
- Nos movemos al directorio en el que queremos crear nuestro sitio, por ejemplo:
cd C:\static_site_generators
- Allí ejecutamos:
jekyll new jekyll-test
Es posible que la primera vez que ejecutemos esto nos muestre un error como este:
Gem::RemoteFetcher::FetchError: SSL_connect returned=1 errno=0 state=SSLv3 read
server certificate B: certificate verify failed
(https://rubygems.org/gems/jekyll-feed-0.8.0.gem)
An error occurred while installing jekyll-feed (0.8.0), and Bundler cannot
continue.
Si se nos queja del certificado tal y como hemos visto debemos hacer lo siguiente:
1) gem sources -a http://rubygems.org/
2) gem sources -r https://rubygems.org/
3) gem sources -u
4) Nos movemos al directorio donde íbamos a ejecutar el comando:
jekyll new jekill-test
Y ejecutamos:
bundle init
Abrimos el archivo Gemfile que nos habrá generado y verificamos que la ruta que aparece es la que va sin https:
source "http://rubygems.org"
Eliminamos el directorio jekill-test que ya teníamos creado y ejecutamos:
1) gem install jekyll bundler
2) jekyll new jekyll-test
Nos lo debería haber creado correctamente y mostrado una salida como esta:
3) cd jekyll-test
4) bundle install
5) gem install minima -v 2.1.0
5) Ejecutamos:
jekyll serve
Esto ejecutará el servidor y nos mostrará si se está ejecutando bien y en qué puerto:
Configuration file: C:/static_site_generators/jekyll-test/_config.yml
Configuration file: C:/static_site_generators/jekyll-test/_config.yml
Source: C:/static_site_generators/jekyll-test
Destination: C:/static_site_generators/jekyll-test/_site
Incremental build: disabled. Enable with --incremental
Generating...
done in 0.933 seconds.
Please add the following to your Gemfile to avoid polling for changes:
gem 'wdm', '>= 0.1.0' if Gem.win_platform?
Auto-regeneration: enabled for 'C:/static_site_generators/jekyll-test'
Configuration file: C:/static_site_generators/jekyll-test/_config.yml
Server address: http://127.0.0.1:4000/
Server running... press ctrl-c to stop.
Accediendo a esa dirección ya podremos ver el sitio