mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-12 12:07:20 +00:00
Packaging fixes
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
FROM rancherlabs/website:build as build
|
||||
FROM rancher/docs:build as build
|
||||
|
||||
WORKDIR /run
|
||||
|
||||
|
||||
+1
-1
@@ -39,7 +39,7 @@ RUN ln -s /site/config.toml /run \
|
||||
COPY gulpfile.babel.js /run/
|
||||
|
||||
# Expose default hugo port
|
||||
EXPOSE 9000
|
||||
EXPOSE 9001
|
||||
|
||||
ENTRYPOINT ["gulp"]
|
||||
CMD ["dev"]
|
||||
|
||||
+2
-2
@@ -46,7 +46,7 @@ gulp.task('init-watch', () => {
|
||||
server: {
|
||||
baseDir: 'public'
|
||||
},
|
||||
port: 9020,
|
||||
port: 9001,
|
||||
open: false
|
||||
});
|
||||
$.watch('src/sass/**/*.scss', () => gulp.start('sass'));
|
||||
@@ -82,7 +82,7 @@ gulp.task('hugo-preview', (cb) => {
|
||||
});
|
||||
|
||||
gulp.task('hugo-dev', (cb) => {
|
||||
return spawn('hugo', ['--buildDrafts', '--buildFuture', '--baseURL=http://localhost:9020/'], { stdio: 'inherit' }).on('close', (/* code */) => {
|
||||
return spawn('hugo', ['--buildDrafts', '--buildFuture', '--baseURL=http://localhost:9001/'], { stdio: 'inherit' }).on('close', (/* code */) => {
|
||||
browserSync.reload();
|
||||
cb();
|
||||
});
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "RancherLabs - Docs",
|
||||
"name": "rancher-docs",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "gulp build",
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
PORT=9000
|
||||
PORT=9001
|
||||
THEME=
|
||||
|
||||
# cd to app root
|
||||
@@ -64,4 +64,4 @@ if [[ "$THEME" ]]; then
|
||||
THEMEVOLUME="-v ${ABSOLUTE}:/run/node_modules/rancher-website-theme"
|
||||
fi
|
||||
|
||||
docker run --rm -p ${PORT}:${PORT} -it -v $(pwd):/site ${THEMEVOLUME} rancherlabs/website:dev dev --port=${PORT}
|
||||
docker run --rm -p ${PORT}:${PORT} -it -v $(pwd):/site ${THEMEVOLUME} rancher/docs:dev dev --port=${PORT}
|
||||
|
||||
Reference in New Issue
Block a user