Can't build on local for deploy on a server
marcgise opened this issue · comments
Describe the bug
Mi intention is to deploy Dejavu in a server. This server is only accessible from a VPN, so I can't share the connection.
I'm trying to execute yarn build:dejavu
hoping to have a dist folder to deploy into an Apache HTTPD Server. Maybe I'm wrong about how to deploy it, I'm not sure. But could you tell me if it's possible to do? Or should I deploy it with docker?
Dejavu Version
3.4.3
To Reproduce
yarn build:dejavu
Expected behavior
I expect to have a dist folder to deploy into an Apache HTTPD Server.
Desktop (please complete the following information):
- OS: Ubuntu 20.04
I face that when dejavu starts, it's listening to 127.0.0.1:1358 address. Maybe a solution is to change it in order to listen to 0.0.0.0:1358
Can I change it from any config file?
@marcgise here are the steps to get production ready build
yarn build:dejavu:app
from the root folder- copy
cd packages/dejavu-main/dist/app/
folder to your apache server hosting dir
Well, I finally get it... Adding a property in the webpack.config.js file:
devServer: {
compress: true,
public: "myserver.es"
}
@marcgise that will just start it in dev mode.
To run in production make sure you create build and follow the above steps.