using bash, not xxonsh:
cd ~/apps/angela/
python3.6 -m venv snarg
source snarg/bin/activate
python3 site.py
or the non-virt way:
cd ~/apps/angela/
/home/wendell/apps/angela/env/bin/python3.6 site.py
my domain use:
| domain | server | use |
|---|---|---|
| carrotseverywhere.com | cherrypy | todo |
| go.carrotseverywhere.com | cherrypy | done |
| icecream.carrotseverywhere.com | cherrypy | in progress |
| notes.carrotseverywhere.com | static srvr | notes |
| wendell.opalstacked.com | ??? | can't find |
FINALLY got virtualhost to work! (apparently MUST have text config file)
pip3 install beautifulsoup4
pip3 install geopy
pip3 install geojson
pip3 install toml
pip3 install geojson_rewind
pip3 install shapely
pip3 install requests
and copy over overpass
WITHIN the venv:
(snarg) wendell@opal4:~/apps/angela
mkdir pkgs
(snarg) wendell@opal4:~/apps/angela
cd pkgs
(snarg) wendell@opal4:~/apps/angela/pkgs
git clone https://github.com/psycopg/psycopg2.git
Cloning into 'psycopg2'...
find /usr -name "pg_config"
/usr/pgsql-11/bin/pg_config
> python3 setup.py build_ext --pg-config /usr/pgsql-11/bin/pg_config build
> python3 setup.py build_ext --pg-config /usr/pgsql-11/bin/pg_config install
the edit cgi/postg.py for new credentials
$ mkdir vuejs
$ cd vuejs
$ npm init
$ npm install vue@next
$ npm install ol
todo: read installation notes
When using Vue, we recommend also installing the Vue Devtools in your browser, allowing you to inspect and debug your Vue applications in a more user-friendly interface.
npm is the recommended installation method when building large scale applications with Vue. It pairs nicely with module bundlers such as Webpack or Rollup
Hmmm..., need to read about these:
See the following examples for more detail on bundling OpenLayers with your application:
We'll choose webpack
> cd ~/apps/notes_static/
> mv index.html index-notes.html
> cp ~/src/ol-webpack/index.html .
> cp ~/src/ol-webpack/bundle.js .
Yipee! a map shows up!
HOWEVER, webpack looks too hard, and wasn't used in vue3, so DON'T USE it.