Skip to content

Commit

Permalink
rename docs to public folder
Browse files Browse the repository at this point in the history
  • Loading branch information
pauloeducampos committed Sep 11, 2020
1 parent 109f467 commit a81caa4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
"scripts": {
"start": "./node_modules/.bin/webpack-dev-server --host 0.0.0.0",
"test": "echo \"Error: no test specified\" && exit 1",
"setup": "rm -rf docs/*",
"setup": "rm -rf public/*",
"build": "npm run setup && webpack --config webpack.config.js -d --env production",
"watch": "npm run setup && webpack --config webpack.config.js --watch",
"deploy": "npm run build && cp docs/index.html docs/404.html && gh-pages -d public",
"deploy": "npm run build && cp public/index.html public/404.html && gh-pages -d public",
"manage:translations": "node ./translationRunner.js",
"dev": "./node_modules/.bin/webpack-dev-server --content-base"
},
Expand Down
2 changes: 1 addition & 1 deletion static.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"root": "docs/",
"root": "public/",
"https_only": true,
"routes": {
"/**": "index.html"
Expand Down
2 changes: 1 addition & 1 deletion vhost.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
server {
listen 80;
index index.php index.html;
root /usr/src/app/docs;
root /usr/src/app/public;
location / {
try_files $uri /index.html?$args;
}
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ let config = {
modules: ["src", "files", "node_modules"]
},
devServer: {
contentBase: path.join(__dirname, "docs"),
contentBase: path.join(__dirname, "public"),
inline: true,
compress: true,
host: '0.0.0.0',
port: 8080
},
output: {
path: path.join(__dirname, "docs"),
path: path.join(__dirname, "public"),
// publicPath: path.join(__dirname, "public/"),
filename: "[name]-[chunkhash].js"
},
Expand Down

0 comments on commit a81caa4

Please sign in to comment.