cppcms-users Mailing List for CppCMS C++ Web Framework (Page 7)
Brought to you by:
artyom-beilis
You can subscribe to this list here.
2009 |
Jan
|
Feb
(22) |
Mar
|
Apr
(3) |
May
|
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
(15) |
Nov
(16) |
Dec
(13) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2010 |
Jan
(4) |
Feb
|
Mar
(8) |
Apr
(8) |
May
(8) |
Jun
(36) |
Jul
(63) |
Aug
(126) |
Sep
(47) |
Oct
(66) |
Nov
(46) |
Dec
(42) |
2011 |
Jan
(87) |
Feb
(24) |
Mar
(54) |
Apr
(21) |
May
(22) |
Jun
(18) |
Jul
(22) |
Aug
(101) |
Sep
(57) |
Oct
(33) |
Nov
(34) |
Dec
(66) |
2012 |
Jan
(64) |
Feb
(76) |
Mar
(73) |
Apr
(105) |
May
(93) |
Jun
(83) |
Jul
(84) |
Aug
(88) |
Sep
(57) |
Oct
(59) |
Nov
(35) |
Dec
(49) |
2013 |
Jan
(67) |
Feb
(17) |
Mar
(49) |
Apr
(64) |
May
(87) |
Jun
(64) |
Jul
(93) |
Aug
(23) |
Sep
(15) |
Oct
(16) |
Nov
(62) |
Dec
(73) |
2014 |
Jan
(5) |
Feb
(23) |
Mar
(21) |
Apr
(11) |
May
(1) |
Jun
(19) |
Jul
(27) |
Aug
(16) |
Sep
(5) |
Oct
(37) |
Nov
(12) |
Dec
(9) |
2015 |
Jan
(7) |
Feb
(7) |
Mar
(44) |
Apr
(28) |
May
(5) |
Jun
(12) |
Jul
(8) |
Aug
|
Sep
(39) |
Oct
(34) |
Nov
(30) |
Dec
(34) |
2016 |
Jan
(66) |
Feb
(23) |
Mar
(33) |
Apr
(15) |
May
(11) |
Jun
(15) |
Jul
(26) |
Aug
(4) |
Sep
(1) |
Oct
(30) |
Nov
(10) |
Dec
|
2017 |
Jan
(52) |
Feb
(9) |
Mar
(24) |
Apr
(16) |
May
(9) |
Jun
(12) |
Jul
(33) |
Aug
(8) |
Sep
|
Oct
(1) |
Nov
(2) |
Dec
(6) |
2018 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
(14) |
Jun
(1) |
Jul
(9) |
Aug
(1) |
Sep
(13) |
Oct
(8) |
Nov
(2) |
Dec
(2) |
2019 |
Jan
(1) |
Feb
(1) |
Mar
(3) |
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
2020 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
(9) |
Jul
(6) |
Aug
(25) |
Sep
(10) |
Oct
(10) |
Nov
(6) |
Dec
|
2021 |
Jan
|
Feb
|
Mar
(7) |
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
(9) |
Oct
(1) |
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Eric J. <jan...@gm...> - 2018-05-01 11:54:51
|
Hi, I compiled the source code with clang++ under FreeBSD 11. I generated skin in library form: libcpp_defskin.so This is the content of the config.json: > { > > "Website" : { > > "root" : "", > > "host" : "localhost:8080", > > "locdomain" : "localhost" > > }, > > "service" : { > > "api" : "http", > > "port" : 8080 > > }, > > "http" : { > > "script" : "/mb.fcgi", > > "rewrite" : [ > > { "regex" : "/assets(/.+)", "pattern" : "$1" }, > > { "regex" : ".*", "pattern" : "/mb.fcgi$0" } > > ] > > }, > > "views" : { > > "default_skin" : "defskin", > > "paths" : [ "./" ], > > "skins" : [ "cpp_defskin" ] > > }, > > "file_server" : { > > "enable" : true, > > "listing" : true, > > "document_root" : "./assets" > > } > > } > > When I tried to load the app: ./WebApp -c config.js, it has this error: 2018-05-01 19:18:53; cppcms, error: Caught exception > [cppcms::views::generator: an attempt to use content of invalid type] > 0x800c9ca86: booster::stack_trace::trace(void**, int) + 0x26 in > /usr/local/lib/libbooster.so.0 > 0x8009096c1: booster::backtrace::backtrace(unsigned long) + 0x61 in > /usr/local/lib/libcppcms.so.1 > 0x80380b7a6: > booster::runtime_error::runtime_error(std::__1::basic_string<char, > booster::runtime_error::runtime_error::char_traits<char>, > booster::runtime_error::runtime_error::allocator<char> > const&) + 0x46 in > .//libcpp_defskin.so > 0x803809af7: > cppcms::cppcms_error::cppcms_error(std::__1::basic_string<char, > cppcms::cppcms_error::cppcms_error::char_traits<char>, > cppcms::cppcms_error::cppcms_error::allocator<char> > const&) + 0x27 in > .//libcpp_defskin.so > 0x80380de2b: std::__1::auto_ptr<cppcms::base_view> > cppcms::views::generator::view_builder<defskin::Index, > Content::Index>(cppcms::views::generator::view_builder<defskin::Index, > Content::Index>::basic_ostream<char, > cppcms::views::generator::view_builder<defskin::Index, > Content::Index>::char_traits<char> >&, cppcms::base_content*) + 0x5eb in > .//libcpp_defskin.so > 0x800948b51: cppcms::views::pool::create_view(std::__1::basic_string<char, > cppcms::views::pool::create_view::char_traits<char>, > cppcms::views::pool::create_view::allocator<char> > const&, > std::__1::basic_string<char, > cppcms::views::pool::create_view::char_traits<char>, > cppcms::views::pool::create_view::allocator<char> > const, > cppcms::views::pool::create_view::basic_ostream<char, > cppcms::views::pool::create_view::char_traits>&, cppcms::base_content&) + > 0x81 in /usr/local/lib/libcppcms.so.1 > 0x80094919d: cppcms::views::pool::render(std::__1::basic_string<char, > cppcms::views::pool::render::char_traits<char>, > cppcms::views::pool::render::allocator<char> > const&, > std::__1::basic_string<char, > cppcms::views::pool::render::char_traits<char>, > cppcms::views::pool::render::allocator<char> > const, > cppcms::views::pool::render::basic_ostream<char, > cppcms::views::pool::render::char_traits>&, cppcms::base_content&) + 0x3d > in /usr/local/lib/libcppcms.so.1 > 0x800930469: cppcms::application::render(std::__1::basic_string<char, > cppcms::application::render::char_traits<char>, > cppcms::application::render::allocator<char> >, cppcms::base_content&) + > 0x89 in /usr/local/lib/libcppcms.so.1 > 0x4173f6: ??? + 0x4173f6 in /usr/home/eric/www/eric_jansen_id/output/WebApp > 0x43e4d2: ??? + 0x43e4d2 in /usr/home/eric/www/eric_jansen_id/output/WebApp > 0x43e2d5: ??? + 0x43e2d5 in /usr/home/eric/www/eric_jansen_id/output/WebApp > 0x80093a850: booster::function<void()(std::__1::basic_string<char, > std::__1::char_traits<char>, std::__1::allocator<char> > >)>::operator()(std::__1::basic_string<char, std::__1::char_traits<char>, > std::__1::allocator<char> >) const + 0x30 in /usr/local/lib/libcppcms.so.1 > 0x800937206: cppcms::url_dispatcher::setup_stream(cppcms::application&, > std::__1::basic_istream<char, cppcms::application&::char_traits<char> >&) + > 0xd36 in /usr/local/lib/libcppcms.so.1 > 0x800932be0: cppcms::url_dispatcher::dispatch(std::__1::basic_string<char, > cppcms::url_dispatcher::dispatch::char_traits<char>, > cppcms::url_dispatcher::dispatch::allocator<char> >) + 0xd0 in > /usr/local/lib/libcppcms.so.1 > 0x80093014f: cppcms::application::main(std::__1::basic_string<char, > cppcms::application::main::char_traits<char>, > cppcms::application::main::allocator<char> >) + 0x2f in > /usr/local/lib/libcppcms.so.1 > 0x408101: ??? + 0x408101 in /usr/home/eric/www/eric_jansen_id/output/WebApp > 0x800928ce1: > cppcms::http::context::dispatch(booster::intrusive_ptr<cppcms::application> > const&, std::__1::basic_string<char, > booster::intrusive_ptr<cppcms::application> const&::char_traits<char>, > booster::intrusive_ptr<cppcms::application> const&::allocator<char> > > const&, bool) + 0x1b1 in /usr/local/lib/libcppcms.so.1 > 0x8009291f9: > cppcms::http::context::dispatch(booster::shared_ptr<cppcms::application_specific_pool> > const&, booster<cppcms::http::context> const&, std::__1::basic_string<char, > booster<cppcms::http::context> const&::char_traits<char>, > booster<cppcms::http::context> const&::allocator<char> > const&) + 0x99 in > /usr/local/lib/libcppcms.so.1 > 0x80092bc05: cppcms::impl::thread_pool::worker(void) + 0xd5 in > /usr/local/lib/libcppcms.so.1 > 0x800ce7b1a: bool + 0x1a in /usr/local/lib/libbooster.so.0 > 0x80228abc5: operator-> + 0x925 in /lib/libthr.so.3 > (http_context.cpp:336) What could be the solution? Thank you *ERIC JANSEN* C/C++ Software Engineer |
From: Artyom B. <art...@gm...> - 2018-01-16 21:26:00
|
Stable version of CppCMS 1.2.0 was released. Essentially it is the same as 1.1.1 with exception of the license that was modified to MIT. It is available for download from sourceforge. https://sourceforge.net/projects/cppcms/files/cppcms/1.2.0/ Artyom |
From: Artyom B. <art...@gm...> - 2018-01-16 21:23:38
|
> But, there are some people out there (like me and my company), who needs > premium support. i.e., someone to send an e-mail and get quick and > professional reply in timely manner. > And the support described at 2nd clause should take time for the developer, > which shouldn't be offered for free*. > Yes, of course. But as you probably noticed the commercial license CppCMS was released didn't offer specific support plans. Support is a separate part and the way it is provided is defined according to the specific customer needs. Regards, Artyom |
From: Юрий Ч. <sha...@ma...> - 2018-01-16 15:52:18
|
Bedir hello! Here, until I can not run. Can still that you will advise? >Вторник, 16 января 2018, 17:10 +07:00 от Nazım Can Bedir <naz...@ne...>: > >Hello Artyom, >Thank you very much for bringing more freedom to CppCMS. With all > my respect, I would like to propose one thing concerning your > efforts in the library: >>Would you still consider commercial license for CppCMS? Maybe >> something similar to one offered by SQLite developers? >> >Why? Because, >* Yes, by moving to MIT license, you destroyed the license > limitations. Thus, nobody is required to pay for doing > closed-source development. >* But, there are some people out there (like me and my company), > who needs premium support. i.e., someone to send an e-mail and > get quick and professional reply in timely manner. >* And the support described at 2nd clause should take time for > the developer, which shouldn't be offered for free*. > >* Dear list users, please don't get me wrong. I am not trying to > say that support should be something paid for, but still community > support and professional support is completely different things. > >Best regards, >Nazim Can. > >On 16/01/18 12:38, Artyom Beilis wrote: >>Hello Dear CppCMS Users, >> >>CppCMS project moved from LGPLv3 to MIT license for CppCMS 1.2. >> >>These are the goals of this move: >> >>1. Increase the CppCMS market share >>2. Bring more developers to CppCMS project itself >> >>Regards, >> >>Artyom Beilis >> >>P.S.: The license is already updated on github >> >>------------------------------------------------------------------------------ >>Check out the vibrant tech community on one of the world's most >>engaging tech sites, Slashdot.org! http://sdm.link/slashdot >>_______________________________________________ >>Cppcms-users mailing list >>Cpp...@li... >>https://lists.sourceforge.net/lists/listinfo/cppcms-users >> >------------------------------------------------------------------------------ >Check out the vibrant tech community on one of the world's most >engaging tech sites, Slashdot.org! http://sdm.link/slashdot >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: Nazım C. B. <naz...@ne...> - 2018-01-16 10:11:13
|
Hello Artyom, Thank you very much for bringing more freedom to CppCMS. With all my respect, I would like to propose one thing concerning your efforts in the library: Would you still consider commercial license for CppCMS? Maybe something similar to one offered by SQLite developers? Why? Because, 1. Yes, by moving to MIT license, you destroyed the license limitations. Thus, nobody is required to pay for doing closed-source development. 2. But, there are some people out there (like me and my company), who needs premium support. i.e., someone to send an e-mail and get quick and professional reply in timely manner. 3. And the support described at 2nd clause should take time for the developer, which shouldn't be offered for free*. * Dear list users, please don't get me wrong. I am not trying to say that support should be something paid for, but still community support and professional support is completely different things. Best regards, Nazim Can. On 16/01/18 12:38, Artyom Beilis wrote: > Hello Dear CppCMS Users, > > CppCMS project moved from LGPLv3 to MIT license for CppCMS 1.2. > > These are the goals of this move: > > 1. Increase the CppCMS market share > 2. Bring more developers to CppCMS project itself > > Regards, > > Artyom Beilis > > P.S.: The license is already updated on github > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: Artyom B. <art...@gm...> - 2018-01-16 09:39:08
|
Hello Dear CppCMS Users, CppCMS project moved from LGPLv3 to MIT license for CppCMS 1.2. These are the goals of this move: 1. Increase the CppCMS market share 2. Bring more developers to CppCMS project itself Regards, Artyom Beilis P.S.: The license is already updated on github |
From: Artyom B. <art...@gm...> - 2017-12-07 10:02:15
|
Is it all OK? If so next version will be 1.2.0 Artyom |
From: Artyom B. <art...@gm...> - 2017-12-03 21:42:21
|
New version includes following changes: - Nightly build system updated to moderns OSes/compilers: 1. Windows XP -> Windows 7 2. MSVC 2008 x86 to MSVC 2017 x86/x65 3. MinGW GCC 4.5 x86 -> 7.1 x86/x64 4. OpenSolars 2009 to Solaris 11 5. FreeBSD 10 -> FreeBSD 11.1 6. Added travis.yml for Mac OS X builds - Improved http timeouts handling on non Linux/Windows OSes. - Fixed incorrect asynchronous IO handing in `*cgi` API. - Added support of `SOL_SNDBUF/SOL_RCVBUF` to service configuration - Fixed HTTP timeout handling on Solaris - Fixed #24 failure to send large blocks asynchronously over FastCGI - Fixied issue #21 Program produces 100% CPU load on one core - due to incorrect EOF handling - Fixed icu backend test for ICU >= 60.1 - Fixed missing `getenv(std::string const &)` issue #16 - Fixed issues with codecvt generation FreeBSD/clang - Use Windows Vista/7 API by defaults since XP reached EOL. - Fixed incorrect async connect error handling - Lineup with Boost.Locale 1.65 - Updated session interface for external languages and unit tests Regards, Artyom Beilis |
From: Artyom B. <art...@gm...> - 2017-12-03 15:50:56
|
Small updates. Mac OS X builds I solved with github's travis. So I have solution for this. However I still want to know what ARM based systems are used with CppCMS. Thanks, Artyom On Sun, Dec 3, 2017 at 4:44 PM, Artyom Beilis <art...@gm...> wrote: > BTW if you are not familiar: > > http://cppcms.com/files/nightly-build-report.html > > Artyom > > On Sun, Dec 3, 2017 at 4:42 PM, Artyom Beilis <art...@gm...> wrote: >> Hi All, >> >> I recently Updated the nightly build system with up to date OSes and compilers: >> >> Linux -> Ubuntu 16.04: gcc5.4, clang3.8/clang4.0 >> Windows XP -> Windows 7: msvc 2017/gcc7.1 >> FreeBSD 10 -> FreeBSD 11.1: clang 4.0 >> OpenSolaris 2009 -> Solaris 11: gcc-4.8 >> >> >> Now I know that there are multiple users running CppCMS on embedded >> ARM systems and some running on Mac OS X. >> >> I want to extend my virtual OS Zoo to include more platforms, in particular ARM. >> >> I can setup qemu but what are the embedded system actually in use? >> What do you suggest to setup - note I don't have ARM hardware? What >> simulation environment besides qemu can be used? >> >> Mac OS X... Unfortunately the license does not allow to run on >> non-Apple hw even VM. >> >> So if someone can provide nightly runs - i.e. put build into crontab >> on Mac and send the results somehow (we'll figure out how to) I can >> help. >> >> Artyom |
From: Artyom B. <art...@gm...> - 2017-12-03 14:44:15
|
BTW if you are not familiar: http://cppcms.com/files/nightly-build-report.html Artyom On Sun, Dec 3, 2017 at 4:42 PM, Artyom Beilis <art...@gm...> wrote: > Hi All, > > I recently Updated the nightly build system with up to date OSes and compilers: > > Linux -> Ubuntu 16.04: gcc5.4, clang3.8/clang4.0 > Windows XP -> Windows 7: msvc 2017/gcc7.1 > FreeBSD 10 -> FreeBSD 11.1: clang 4.0 > OpenSolaris 2009 -> Solaris 11: gcc-4.8 > > > Now I know that there are multiple users running CppCMS on embedded > ARM systems and some running on Mac OS X. > > I want to extend my virtual OS Zoo to include more platforms, in particular ARM. > > I can setup qemu but what are the embedded system actually in use? > What do you suggest to setup - note I don't have ARM hardware? What > simulation environment besides qemu can be used? > > Mac OS X... Unfortunately the license does not allow to run on > non-Apple hw even VM. > > So if someone can provide nightly runs - i.e. put build into crontab > on Mac and send the results somehow (we'll figure out how to) I can > help. > > Artyom |
From: Artyom B. <art...@gm...> - 2017-12-03 14:42:20
|
Hi All, I recently Updated the nightly build system with up to date OSes and compilers: Linux -> Ubuntu 16.04: gcc5.4, clang3.8/clang4.0 Windows XP -> Windows 7: msvc 2017/gcc7.1 FreeBSD 10 -> FreeBSD 11.1: clang 4.0 OpenSolaris 2009 -> Solaris 11: gcc-4.8 Now I know that there are multiple users running CppCMS on embedded ARM systems and some running on Mac OS X. I want to extend my virtual OS Zoo to include more platforms, in particular ARM. I can setup qemu but what are the embedded system actually in use? What do you suggest to setup - note I don't have ARM hardware? What simulation environment besides qemu can be used? Mac OS X... Unfortunately the license does not allow to run on non-Apple hw even VM. So if someone can provide nightly runs - i.e. put build into crontab on Mac and send the results somehow (we'll figure out how to) I can help. Artyom |
From: Юрий Ч. <sha...@ma...> - 2017-12-03 09:59:23
|
Good evening! I can not yet run the project for fastcgi. I tried a lot of options, but it does not work. I set the directive "user root;" and "user yurkosan;" (nginx.conf). Can you advise something, how to run under fastcgi? I send the same configuration files. Can I ask you for working examples of configuration files for nginx ( Nginx 1.110.3 ) and project? With deep respect. Yuri. Novosibirsk. |
From: Nazım C. B. <naz...@ne...> - 2017-11-26 14:31:43
|
Hello comrade, CppCMS doesn't construct configuration file path automatically. That's why CppCMS program is usually run with '-c <config_file_path>' argument. Could you please try starting your program as follow? $ cd /home/yurkosan/www/domains/kinomusorka.ru/debug $ ./kinomusorka_ru -c config.json I think this way, everything will work as expected. Best regards, Nazim. On 26/11/17 17:01, Юрий Чернышов via Cppcms-users wrote: > > Good evening, dear friends! > I really love the CppCms framework, because it gives controllability, > power and speed. I have an error in the project: > > "No configuration defined" > > > I can not yet run the minimal project on CppCms. Can you help? I'm > using Nginx 1.10.3. I configured the nginx.conf configuration file > like this: > > user yurkosan; > worker_processes 12; > pid /run/nginx.pid; > include /etc/nginx/modules-enabled/*.conf; > > events { > worker_connections 768; > } > > http { > sendfile on; > tcp_nopush on; > tcp_nodelay on; > keepalive_timeout 65; > types_hash_max_size 2048; > > include /etc/nginx/mime.types; > default_type application/octet-stream; > > ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE > ssl_prefer_server_ciphers on; > > access_log /var/log/nginx/access.log; > error_log /var/log/nginx/error.log notice; > > gzip on; > gzip_disable "msie6"; > > include /etc/nginx/conf.d/*.conf; > include /etc/nginx/sites-enabled/*; > > server { > # Нужно вручную создать переменую PATH_INFO > # используя перезапись URL > set $path_info ""; > if ( $fastcgi_script_name ~ ^/hello(.*)$ ) { > set $path_info $1; > } > > # Указываем URL для совпадения > location ~ ^/hello.*$ { > # Сокет для обмена данными > fastcgi_pass unix:/tmp/hello-fcgi-socket; > > # Все поддерживаемые переменные CGI > fastcgi_param QUERY_STRING $query_string; > fastcgi_param REQUEST_METHOD $request_method; > fastcgi_param CONTENT_TYPE $content_type; > fastcgi_param CONTENT_LENGTH $content_length; > > fastcgi_param SCRIPT_NAME /hello; > fastcgi_param PATH_INFO $path_info; > fastcgi_param REQUEST_URI $request_uri; > fastcgi_param DOCUMENT_URI $document_uri; > fastcgi_param DOCUMENT_ROOT $document_root; > fastcgi_param SERVER_PROTOCOL $server_protocol; > > fastcgi_param GATEWAY_INTERFACE CGI/1.1; > fastcgi_param SERVER_SOFTWARE nginx; > > fastcgi_param REMOTE_ADDR $remote_addr; > fastcgi_param REMOTE_PORT $remote_port; > fastcgi_param SERVER_ADDR $server_addr; > fastcgi_param SERVER_PORT $server_port; > fastcgi_param SERVER_NAME $server_name; > } > } > } > > > I use this project configuration file (config.json): > > { > "service" : { > "api" : "fastcgi", > "socket" : "/tmp/hello-fcgi-socket" > } > } > > > I use the environment of Qt Creator 4.5.0 (Qt 5.9.2). > I'm using the following project file (kinomusorka_ru.pro): > > > LIBS += -L/usr/local/lib/ -lbooster -lcppcms > INCLUDEPATH += /usr/local/include > DEPENDPATH += /usr/local/include > > TEMPLATE = app > CONFIG += console c++14 > CONFIG -= app_bundle > CONFIG -= qt > > SOURCES += main.cpp > > I use the following source code (main.cpp): > > > #include <cppcms/application.h> > #include <cppcms/applications_pool.h> > #include <cppcms/service.h> > #include <cppcms/http_response.h> > #include <iostream> > class my_hello_world : public cppcms::application { > public: > my_hello_world(cppcms::service &srv) : > cppcms::application(srv) > { > } > virtual void main(std::string url); > }; > void my_hello_world::main(std::string /*url*/) > { > response().out()<< > "<html>\n" > "<body>\n" > " <h1>Hello World</h1>\n" > "</body>\n" > "</html>\n"; > } > int main(int argc,char ** argv) > { > try { > cppcms::service srv(argc,argv); > srv.applications_pool().mount(cppcms::applications_factory<my_hello_world>()); > srv.run(); > } > catch(std::exception const &e) { > std::cerr<<e.what()<<std::endl; > } > } > // vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 > > > The project configuration file is in the folder > /home/yurkosan/www/domains/kinomusorka.ru/debug. > In the same folder is the assembly of binary files. As a result, I get > an error > > "No configuration defined". > > The project does not start. Tell me, what do I need to do to run the > minimal project on the framework? > Can you give a ready-made example for a nginx server and Qt Creator? > > With deep respect. Yuri. Novosibirsk. > > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: Юрий Ч. <sha...@ma...> - 2017-11-26 14:02:04
|
Good evening, dear friends! I really love the CppCms framework, because it gives controllability, power and speed. I have an error in the project: "No configuration defined" I can not yet run the minimal project on CppCms. Can you help? I'm using Nginx 1.10.3. I configured the nginx.conf configuration file like this: user yurkosan; worker_processes 12; pid /run/nginx.pid; include /etc/nginx/modules-enabled/*.conf; events { worker_connections 768; } http { sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; include /etc/nginx/mime.types; default_type application/octet-stream; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE ssl_prefer_server_ciphers on; access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log notice; gzip on; gzip_disable "msie6"; include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*; server { # Нужно вручную создать переменую PATH_INFO # используя перезапись URL set $path_info ""; if ( $fastcgi_script_name ~ ^/hello(.*)$ ) { set $path_info $1; } # Указываем URL для совпадения location ~ ^/hello.*$ { # Сокет для обмена данными fastcgi_pass unix:/tmp/hello-fcgi-socket; # Все поддерживаемые переменные CGI fastcgi_param QUERY_STRING $query_string; fastcgi_param REQUEST_METHOD $request_method; fastcgi_param CONTENT_TYPE $content_type; fastcgi_param CONTENT_LENGTH $content_length; fastcgi_param SCRIPT_NAME /hello; fastcgi_param PATH_INFO $path_info; fastcgi_param REQUEST_URI $request_uri; fastcgi_param DOCUMENT_URI $document_uri; fastcgi_param DOCUMENT_ROOT $document_root; fastcgi_param SERVER_PROTOCOL $server_protocol; fastcgi_param GATEWAY_INTERFACE CGI/1.1; fastcgi_param SERVER_SOFTWARE nginx; fastcgi_param REMOTE_ADDR $remote_addr; fastcgi_param REMOTE_PORT $remote_port; fastcgi_param SERVER_ADDR $server_addr; fastcgi_param SERVER_PORT $server_port; fastcgi_param SERVER_NAME $server_name; } } } I use this project configuration file (config.json): { "service" : { "api" : "fastcgi", "socket" : "/tmp/hello-fcgi-socket" } } I use the environment of Qt Creator 4.5.0 (Qt 5.9.2). I'm using the following project file (kinomusorka_ru.pro): LIBS += -L/usr/local/lib/ -lbooster -lcppcms INCLUDEPATH += /usr/local/include DEPENDPATH += /usr/local/include TEMPLATE = app CONFIG += console c++14 CONFIG -= app_bundle CONFIG -= qt SOURCES += main.cpp I use the following source code (main.cpp): #include <cppcms/application.h> #include <cppcms/applications_pool.h> #include <cppcms/service.h> #include <cppcms/http_response.h> #include <iostream> class my_hello_world : public cppcms::application { public: my_hello_world(cppcms::service &srv) : cppcms::application(srv) { } virtual void main(std::string url); }; void my_hello_world::main(std::string /*url*/) { response().out()<< "<html>\n" "<body>\n" " <h1>Hello World</h1>\n" "</body>\n" "</html>\n"; } int main(int argc,char ** argv) { try { cppcms::service srv(argc,argv); srv.applications_pool().mount(cppcms::applications_factory<my_hello_world>()); srv.run(); } catch(std::exception const &e) { std::cerr<<e.what()<<std::endl; } } // vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 The project configuration file is in the folder /home/yurkosan/www/domains/kinomusorka.ru/debug. In the same folder is the assembly of binary files. As a result, I get an error "No configuration defined". The project does not start. Tell me, what do I need to do to run the minimal project on the framework? Can you give a ready-made example for a nginx server and Qt Creator? With deep respect. Yuri. Novosibirsk. |
From: Chris V. \(GMail\) <chr...@gm...> - 2017-10-29 19:08:23
|
Hi My setup is as follows: I have CPPCMS running with a main application, and it has a sub application as well. The main application is on the url root. E.g. Example.com is mapped to / The Sub Application (subapp) is mapped to Example.com/subapp So far so good. Now, the server has 2 IP addresses bound to the same network card. The cppcms config file binds on both addresses. And the site works with both IP addresses. I have 2 domains registered. One on each IP address. What I want to do, is to have the following: Example.com goes to the root. I.e. Example.com/ Example2.com should go to Example.com/subapp. And the browser should display Example2.com in the url. How do I get this done with cppcms? Regards |
From: Artyom B. <art...@gm...> - 2017-08-04 11:43:46
|
Thanks, fixed. Note: next time you can fix on your own - it is wiki that can be edited by anybody. Artyom On Thu, Aug 3, 2017 at 11:09 PM, Aaron Laws <dar...@gm...> wrote: > I visit http://cppcms.com/wikipp/en/page/cppcms_1x_tut_hello and click > "Notes for Microsoft Windows users" at the bottom, and it takes me to > http://cppcms.com/wikipp/en/page/notes_for_windows_user . It looks like > there should be an "s" at the end of that link ("user" -> "users"). > > Great work! > > In Christ, > Aaron Laws > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Aaron L. <dar...@gm...> - 2017-08-03 20:10:14
|
I visit http://cppcms.com/wikipp/en/page/cppcms_1x_tut_hello and click "Notes for Microsoft Windows users" at the bottom, and it takes me to http://cppcms.com/wikipp/en/page/notes_for_windows_user . It looks like there should be an "s" at the end of that link ("user" -> "users"). Great work! In Christ, Aaron Laws |
From: Artyom B. <art...@gm...> - 2017-08-03 19:53:52
|
It should be addressed by this closed issue: https://github.com/artyom-beilis/cppcms/issues/9 Try it on latest master. Please note, that you need to be registered member of the list to post messages. Artyom On Thu, Aug 3, 2017 at 7:45 PM, Patrick Wolf <pat...@ra...> wrote: > Hi Artyom, > > I have just tested the latest 1.1.0 version on my small laptop running Linux > Debian. These are attached the different output files. > > Congratulations and bravo for your work. I did not have many issues as you > will notice. During the make procedure, there are some warnings regarding a > deprecated function readdir_r, but that should not prevent it to run > smoothly. All tests passed except for the test_locale_formatting test. > > My test environment is: > Debian GNU/Linux 9.1 (stretch) > cmake version 3.7.2 > gcc version 6.3.0 20170516 (Debian 6.3.0-18) > Python 2.7.13 > > If you want to know any more details, please let me know. > Best regards, > -- > Patrick Wolf > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |
From: Patrick W. <pat...@ra...> - 2017-08-03 16:45:32
|
Hi Artyom, I have just tested the latest 1.1.0 version on my small laptop running Linux Debian. These are attached the different output files. Congratulations and bravo for your work. I did not have many issues as you will notice. During the make procedure, there are some warnings regarding a deprecated function readdir_r, but that should not prevent it to run smoothly. All tests passed except for the test_locale_formatting test. My test environment is: Debian GNU/Linux 9.1 (stretch) cmake version 3.7.2 gcc version 6.3.0 20170516 (Debian 6.3.0-18) Python 2.7.13 If you want to know any more details, please let me know. Best regards, -- Patrick Wolf |
From: jupiter <jup...@gm...> - 2017-08-03 11:52:51
|
Thanks for the response. I tried to debug myself, but no avail. Anyway in my firefox browser it had following messages. If I understood it correctly that the style.css was loaded but it had no effects, and I don't know what other messages mean. If I put the style.css into an html file, it works. What could be the problems that the style.css did not work in the template file? The stylesheet http://localhost:8080/style.css was loaded as CSS even though its MIME type, "text/html", is not "text/css". localhost:8080 Selector expected. Ruleset ignored due to bad selector. style.css:2:0 Unexpected end of file while searching for closing } of invalid rule set. On Sun, Jul 23, 2017 at 11:54 PM, CN <cn...@fa...> wrote: > On Sun, Jul 23, 2017, at 07:11 PM, jupiter wrote: > > Thanks for the response. I know I need to add the external css in the > template file, I built it, the ran the css -c config.js and > http://localust:8080/css, but that did not show the background color > defined in style.css. I copied the first.tmpl to index.html and I could see > the background color from file:///tmp/index.html. That is why I was asking > what was the difference between an html file and cppcms template file?? > > > Then I would check whether or not the HTTP server can find and read file > "style.css". > > Regards, > CN > > -- http://www.fastmail.com - Send your email first class > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > > |
From: Boutrin D. (EXTERNE) <DBo...@gr...> - 2017-08-02 12:16:48
|
I do admit however that you make a point, non standardized mangling technic make things horrible... -----Message d'origine----- De : Artyom Beilis [mailto:art...@gm...] Envoyé : mercredi 2 août 2017 09:50 À : cpp...@li... Objet : [Cppcms-users] MSVC Build Instructions Hello, I'm planning to add MSVC-2017 to nlightly builds for x86 and x64 variants. I have written MSVC build procedures - how to get all dependencies working. For your review: http://cppcms.com/wikipp/en/page/windows_msvc_build Tested on master (note small fixes for CMakeLists.txt where added to find OpenSSL) Artyom Beilis P.S.: Who is sane on this planet and still developing on Windows/MSVC toolchain? It was total nightmare to get all dependencies working :-( ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: Boutrin D. (EXTERNE) <DBo...@gr...> - 2017-08-02 12:13:23
|
Who is sane on this planet and still developing on Windows/MSVC toolchain? I do, like all others millions, and usually I use Visual Studio, and press NMAKE to generate a makefile. Technically , using the IDE, make thing easier .. -----Message d'origine----- De : Artyom Beilis [mailto:art...@gm...] Envoyé : mercredi 2 août 2017 09:50 À : cpp...@li... Objet : [Cppcms-users] MSVC Build Instructions Hello, I'm planning to add MSVC-2017 to nlightly builds for x86 and x64 variants. I have written MSVC build procedures - how to get all dependencies working. For your review: http://cppcms.com/wikipp/en/page/windows_msvc_build Tested on master (note small fixes for CMakeLists.txt where added to find OpenSSL) Artyom Beilis P.S.: Who is sane on this planet and still developing on Windows/MSVC toolchain? It was total nightmare to get all dependencies working :-( ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: Artyom B. <art...@gm...> - 2017-08-02 07:50:18
|
Hello, I'm planning to add MSVC-2017 to nlightly builds for x86 and x64 variants. I have written MSVC build procedures - how to get all dependencies working. For your review: http://cppcms.com/wikipp/en/page/windows_msvc_build Tested on master (note small fixes for CMakeLists.txt where added to find OpenSSL) Artyom Beilis P.S.: Who is sane on this planet and still developing on Windows/MSVC toolchain? It was total nightmare to get all dependencies working :-( |
From: Artyom B. <art...@gm...> - 2017-07-31 06:35:18
|
actually you have one http://cppcms.com/cppcms_ref/latest/classcppcms_1_1crypto_1_1message__digest.html tohex indeed can be useful outside Artyom בתאריך 31 ביולי 2017 09:26, "CN" <cn...@fa...> כתב: On Wed, Jul 12, 2017, at 04:47 AM, Artyom Beilis wrote: > Now I ask the community to fully participate in beta testing so 1.2 > will be released ASAP. Is "sha1_digets" at line# 66 in ~/src/crypto.cpp a typo meant to be "sha1_digest"? By the way, I feel several classes and methods within namespace "impl" are useful to me. class sha1_digets and ~/private/tohex.h are two examples. Maybe it is a good idea to expose them for public usage. Regards, CN -- http://www.fastmail.com - Accessible with your email software or over the web ------------------------------------------------------------ ------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: CN <cn...@fa...> - 2017-07-31 06:25:37
|
On Wed, Jul 12, 2017, at 04:47 AM, Artyom Beilis wrote: > Now I ask the community to fully participate in beta testing so 1.2 > will be released ASAP. Is "sha1_digets" at line# 66 in ~/src/crypto.cpp a typo meant to be "sha1_digest"? By the way, I feel several classes and methods within namespace "impl" are useful to me. class sha1_digets and ~/private/tohex.h are two examples. Maybe it is a good idea to expose them for public usage. Regards, CN -- http://www.fastmail.com - Accessible with your email software or over the web |