From 7ba7bd06e699c06f42b256b8c1eaa4257f7e331b Mon Sep 17 00:00:00 2001 From: Omar Elkadi <omar.elkadi@stud.th-deg.de> Date: Mon, 21 Jun 2021 23:21:37 -0700 Subject: [PATCH] allow accssess from out side vue --- server/dist/server.js | 4 ++++ src/main.js | 8 ++++---- vue.config.js | 3 +++ 3 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 vue.config.js diff --git a/server/dist/server.js b/server/dist/server.js index e1ab0ee..e286207 100644 --- a/server/dist/server.js +++ b/server/dist/server.js @@ -8,3 +8,7 @@ app.get('/', (req, res) => { res.send('Hello World') }) const PORT = process.env.PORT || 3000 app.listen(PORT, () => { console.log(`Server is running in http://localhost:${PORT}`) }) // # sourceMappingURL=server.js.map + +app.listen(3000, '0.0.0.0', function () { + console.log('Listening to port: ' + 3000) +}) diff --git a/src/main.js b/src/main.js index 31345d7..3befa25 100644 --- a/src/main.js +++ b/src/main.js @@ -1,9 +1,9 @@ import { createApp } from 'vue' import App from './App.vue' -import VueSweetalert2 from 'vue-sweetalert2' -import 'sweetalert2/dist/sweetalert2.min.css' - // add routing script to the main import router from './router' -createApp(App).use(VueSweetalert2).use(router).mount('#app') +// const options = { +// confirmButtonColor: '#1a4273' +// } +createApp(App).use(router).mount('#app') diff --git a/vue.config.js b/vue.config.js new file mode 100644 index 0000000..7993e83 --- /dev/null +++ b/vue.config.js @@ -0,0 +1,3 @@ +export const devServer = { + host: '0.0.0.0' +}; \ No newline at end of file -- GitLab