Comments (9)
See #796.
from flat-server.
Are there alternative solutions aside from the utilization of Docker?
from flat-server.
If I use Docker, is there any change at this position in https://github.com/netless-io/flat-server/blob/main/scripts/prepare-test-env.sh?
from flat-server.
Because my knowledge in this area is quite limited, could you please clarify for me?
Sorry for any inconvenience I may have caused and thank you very much for your support.
from flat-server.
Is the command to run like this?
wget -O - https://github.com/netless-io/flat-server/raw/main/scripts/prepare-test-env.sh | sh
docker run --name mysql-db -e MYSQL_ROOT_PASSWORD=your_password -d mysql:latest
docker run --name redis-db -d redis:latest
yarn run test:sync:orm
from flat-server.
It doesn't need to be docker of course. The code of flat-server has to connect to a mysql service and a redis service. It will read config/development.local.yaml
or config/production.local.yaml
(depending on the env NODE_ENV
) at runtime and connect to these services, see
Lines 7 to 20 in f97c153
So you just have to make sure the services are there, and that's enough. The test:sync:orm
script will create database tables for you.
Once you have prepared the databases, you can start running the server with:
# watch build the server, will generate dist/index.js
$ yarn run start
# start server in another terminal
$ node dist/index.js
from flat-server.
Thanks for your support. I will try it.
from flat-server.
Could you please tell me why when I use 'yarn run start' and 'node ./dist/index.js' with port 8080, even though it displays as running successfully but the link doesn't work?
from flat-server.
0.0.0.0
is not a valid address to connect to (ERR_ADDRESS_INVALID). It means that the server listens to all possible addresses that could reach the server. For example localhost
127.0.0.1
192.168.x.y
{your internet ip}
. You can just use 127.0.0.1.
from flat-server.
Related Issues (20)
- [chore]: optimization local development HOT 1
- [chore]: use ava replace mocha
- [chore]: use yml replace env config file HOT 1
- go web server framework discussion HOT 3
- Join Slack
- Readme.md HOT 3
- mysql table information HOT 2
- [bug] room/record: agora generated m3u8 can not play
- ci: Separate the two building ways between web and desktop client.
- 数据库脚本在哪里? HOT 2
- 这个最终的服务端还是没有开源,还是最终调用声网api吧? HOT 2
- 服务端执行 yarn run start 报错 HOT 2
- 无法访问外网能局域网私有化部署吗
- Hello, may I ask where the database script is located? How can I initialize the database? HOT 2
- 大班课能够实现全部人员语音开放吗? HOT 1
- 小班课怎么能够开放人数限制?? HOT 1
- How can we establish a connection between the server and the client, and designate the host in the process? HOT 6
- Could you please provide detailed explanations for the following configurations to be placed in development.local.yaml, excluding configurations for Whiteboard, and SMTP?
- Why did the OAuth Google in the server fail?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flat-server.