├── dist/ # Compiled APP (Serve this files as the static SPA)
│ └── index.html
│ ├── fonts/
│ │ └── ...
│ ├── static/
│ │ └── ...
│ ├── js/
│ │ └── ...
├── config/
│ ├── index.js # main project config
│ └── ...
├── src/
│ ├── main.js # app entry file
│ ├── App.vue # main app component
│ ├── components/ # ui components
│ │ └── ...
│ └── assets/ # module assets (processed by webpack)
│ └── ...
├── static/ # pure static assets (directly copied)
├── test/
...
Actually I am doing this work in my NginX Server but I Will be happy if I can do the same thing easily using pure web2py!!!!
Why using the same port?
Because the CORS issues, this is the best and easy way to deal with CORS. I know I can use sub-domains in the same port, I know I can use ALLOW ORIGIN headers in W2P side but that are not options for me in this case.
NginX config working:
location / {
index index.html index.htm;
root /home/www-data/vue/applications/simott;
try_files $uri $uri/ /index.html;
}
location /api {
uwsgi_pass unix:///tmp/web2py.socket;
include uwsgi_params;
uwsgi_param UWSGI_SCHEME $scheme;
uwsgi_param SERVER_SOFTWARE nginx/$nginx_version;
}
Any recommendations? Thanks in advance!
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
lso, in webpack.config.babel.js configuration file , if you adddevServer: {host: '127.0.0.1',port: 8001,historyApiFallback: false,noInfo: true,proxy: {'/yourapp/api/*': {target: 'http://127.0.0.1:8080',secure: false// changeOrigin: true,// pathRewrite: { '^/api': '' }}},},
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/pzyyNKajy0w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+unsubscribe@googlegroups.com.
--
</div>
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/pzyyNKajy0w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
--Hermosillo, Sonora, MX.Ing. Carlos Alberto Armenta Castro
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
Hi Massimo, I thought you might be interested in this: https://bootstrap-vue.js.org/
Quite a new project, MIT license, currently under very active development mainly by a Canadian and an Iranian.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
How would the "Browser" install method work? Just a matter of adding those lines to layout.html? Possible to implement this without all the build tools?
--
Wouldn't this be just a matter of supplying a "welcome-spa" welcome app/starter with REST "on" and Vue-based (or whatever) views? This doesn't require any changes to core Web2py, does it?
--
I like very much the framework http://deployd.com/It produces and updates automatically according to our data model a js file that is loaded to the user frontend and permits to deal with the datamodel directly from the browser...This way there is no need to REST
2017-12-07 22:06 GMT+00:00 pbreit <pbreit...@gmail.com>:
Wouldn't this be just a matter of supplying a "welcome-spa" welcome app/starter with REST "on" and Vue-based (or whatever) views? This doesn't require any changes to core Web2py, does it?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.