run
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
FROM webratio/nodejs-http-server
|
FROM mhart/alpine-node:5.7.1
|
||||||
|
|
||||||
VOLUME /tmp
|
VOLUME /tmp
|
||||||
|
RUN npm install -g spa-http-server
|
||||||
ADD dist /opt/www
|
ADD dist /opt/www
|
||||||
ADD run.sh /opt/run.sh
|
ADD run.sh /opt/run.sh
|
||||||
ARG VUE_APP_API_HOST
|
ARG VUE_APP_API_HOST
|
||||||
|
|||||||
2
run.sh
2
run.sh
@@ -1,2 +1,2 @@
|
|||||||
env > /opt/www/static/env.txt
|
env > /opt/www/static/env.txt
|
||||||
http-server /opt/www -p 8080
|
http-server /opt/www -p 8080 --push-state
|
||||||
@@ -18,32 +18,44 @@ export default new Router({
|
|||||||
path: '/',
|
path: '/',
|
||||||
name: 'home',
|
name: 'home',
|
||||||
component: Home,
|
component: Home,
|
||||||
},
|
children: [
|
||||||
{
|
{ path: 'mypage', component: MyPage },
|
||||||
path: '/mypage',
|
{ path: 'orderfinish', component: OrderFinish },
|
||||||
name: 'mypage',
|
{ path: 'survey', component: Survey },
|
||||||
component: MyPage
|
{ path: 'products', component: ProductPage },
|
||||||
},
|
|
||||||
{
|
]
|
||||||
path: '/products',
|
|
||||||
name: 'products',
|
|
||||||
component: ProductPage,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/orderfinish',
|
|
||||||
name: 'orderfinish',
|
|
||||||
component: OrderFinish,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/survey',
|
|
||||||
name: 'survey',
|
|
||||||
component: Survey,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/products/:name',
|
path: '/products/:name',
|
||||||
name: 'productsDetail',
|
name: 'productsDetail',
|
||||||
component: ProductDetail,
|
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,
|
||||||
|
// }
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user