A
A
Alexey Belov2019-02-11 05:25:35
linux
Alexey Belov, 2019-02-11 05:25:35

Run Angular and Django with the same command?

I'm trying to run two devs with

cd client
ng build --watch
cd ../
cd src
python manage.py runserver

But only Angular is launched.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
Vadim Shatalov, 2019-02-11
@Alenorze

For things like this, it's very handy to use makefiles
ls Makefile

angular:
    cd client && ng build --watch &
django:
    cd ../src && python manage.py runserver 
run_all:
    make angular
    make django

and then you call what you need
, plus you can also put on wrappers for all other routine tasks

A
Astrohas, 2019-02-11
@Astrohas

cd client && ng build --watch &
cd ../src && python manage.py runserver

M
marazmiki, 2019-02-11
@marazmiki

I understand that it ng build --watchstarts in the terminal and, thus, until it completes, the following commands will not be executed, which is logical.
Run it in the background with nohup .
Well, or try docker-compose :)

V
Vladimir, 2019-02-11
@Casufi

If I were you, I would wrap everything in docker

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question