V
V
ValeraNakhuy2019-03-14 12:08:03
local server
ValeraNakhuy, 2019-03-14 12:08:03

How to run webpack-dev-server on different domain and change it in hosts?

I khamenid domain in hosts file
127.0.0.1:8080 domain.com

But it didn't help

Here is my webpack.config config

module.exports = merge(common, {
    mode: 'development',
    devtool: 'source-map',
    devServer: {
        historyApiFallback: true,
        contentBase: './dist',
        hot: true,
        host: '0.0.0.0',
        port: 80
    },
});

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Ukolov, 2016-11-17
@alexey-m-ukolov

not connected to base
Maybe it has something to do with the fact that you are passing a variable instead of a username into the connection that is not initialized in any way and into which the name of the database is later written and which has the incorrect name db_table ?
By the way, they directly write to you in the error message that this is the problem.
how to fix?
Pass the correct username, correct password to the connection, and verify that this user has the required access rights.
//           (“хост”,      “имя пользователя”, “пароль”)
mysql_connect("localhost", $db_table,          "901kiril")
                           ^^^ проблема ^^^

V
Viktor, 2016-11-17
@master2016

On the first line, replace $db_table with $user_name. Having previously initialized this variable with the correct login to access the database. And everything will work immediately :-)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question