[App Server] Not able to start web server

I am trying to start web server on my home learning PC Ubuntu 21.04.

(env) (base) girish@girish-System-Product-Name:~/xyz/Test$ ls
total 36K
-rw-rw-r-- 1 girish girish  280 Sep 27 21:09 __init__.py
-rw-rw-r-- 1 girish girish   36 Sep 27 21:09 .gitignore
-rw-rw-r-- 1 girish girish  198 Sep 27 21:09 anvil.yaml
-rw-rw-r-- 1 girish girish  208 Sep 27 21:09 .anvil_editor.yaml
drwxrwxr-x 3 girish girish 4.0K Sep 27 21:09 theme
drwxrwxr-x 8 girish girish 4.0K Sep 27 21:09 .git
drwxrwxr-x 3 girish girish 4.0K Sep 27 21:09 client_code
drwxrwxr-x 5 girish girish 4.0K Sep 27 21:09 .
drwxrwxr-x 4 girish girish 4.0K Sep 28 08:13 ..
(env) (base) girish@girish-System-Product-Name:~/xyz/Test$ anvil-app-server --app Test
anvil-app-server: command not found
(env) (base) girish@girish-System-Product-Name:~/xyz/Test$ cd ..
(env) (base) girish@girish-System-Product-Name:~/xyz$ anvil-app-server --app Test
anvil-app-server: command not found
(env) (base) girish@girish-System-Product-Name:~/xyz$ cd Test/
(env) (base) girish@girish-System-Product-Name:~/xyz/Test$ java -version
java version "1.8.0_191"
Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)
(env) (base) girish@girish-System-Product-Name:~/xyz/Test$ python -version
Unknown option: -e
usage: python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
(env) (base) girish@girish-System-Product-Name:~/xyz/Test$ python --version
Python 3.8.11
(env) (base) girish@girish-System-Product-Name:~/xyz/Test$ 

This is my first post and I am sorry, if I am missing environment and / or more info.

1 Like

I’ve never done this, so I can’t be too much help. But it may help others if you explain what other steps you’ve done previously, possibly referring to this guide.

In any case, welcome to Anvil!

Thanks for your reply, but I really down’t know how to use, configure anvil web server. As you linked this guide, I followed as it is but I am not able to see my web page which I designed with Anvil | Login create blank app. I would like to request you to please create a complete steps demo, so that I am continue with anvil. Once again, please do not copy paste, just mention all steps by clicking new blank app by adding all kind of controls on that example app and how do I access that on my machine locally.

I dont know when I will get reply, but still a ray of hope…

Why there is need to say : pip install anvil-app-server
and,
to download around 238 MB some data when I says : anvil-app-server --app twice after every reboot of the PC? This is really frustrating. Means, after every reboot of the PC I have to -

  1. pip install anvil-app-server
  2. anvil-app-server --app
    This will download around 238 MB of a file/data.
  3. anvil-app-server --app
    And now, it is available in localhost.