Skip to content

Commit

Permalink
run
Browse files Browse the repository at this point in the history
  • Loading branch information
sooheon45 committed Sep 19, 2019
1 parent f436952 commit dd83f49
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 23 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM webratio/nodejs-http-server
FROM mhart/alpine-node:5.7.1

VOLUME /tmp
RUN npm install -g spa-http-server
ADD dist /opt/www
ADD run.sh /opt/run.sh
ARG VUE_APP_API_HOST
Expand Down
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
env > /opt/www/static/env.txt
http-server /opt/www -p 8080
http-server /opt/www -p 8080 --push-state
54 changes: 33 additions & 21 deletions src/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,32 +18,44 @@ export default new Router({
path: '/',
name: 'home',
component: Home,
},
{
path: '/mypage',
name: 'mypage',
component: MyPage
},
{
path: '/products',
name: 'products',
component: ProductPage,
},
{
path: '/orderfinish',
name: 'orderfinish',
component: OrderFinish,
},
{
path: '/survey',
name: 'survey',
component: Survey,
children: [
{ path: 'mypage', component: MyPage },
{ path: 'orderfinish', component: OrderFinish },
{ path: 'survey', component: Survey },
{ path: 'products', component: ProductPage },

]
},
{
path: '/products/:name',
name: 'productsDetail',
component: ProductDetail,
}
},
// {
// path: '/mypage',
// name: 'mypage',
// component: MyPage
// },
// {
// path: '/products',
// name: 'products',
// component: ProductPage,
// },
// {
// path: '/orderfinish',
// name: 'orderfinish',
// component: OrderFinish,
// },
// {
// path: '/survey',
// name: 'survey',
// component: Survey,
// },
// {
// path: '/products/:name',
// name: 'productsDetail',
// component: ProductDetail,
// }
]
})

0 comments on commit dd83f49

Please sign in to comment.