DragonOsman Posted August 22, 2018 Share Posted August 22, 2018 (edited) I have a web application with its web server (it's written in C++) and I'd like to host it here if possible. It has SSL support but the certificate isn't valid currently, so I'd also like a (preferably free) domain name that I can get a valid certificate for it on. It uses Boost.Beast, a C++ library based on Boost.Asio that supports HTTP/S and WebSockets, and also Jinja2Cpp (HTML Template library based on Python's Jinja2--work in progress, but intended to support all features that Jinja2 already supports as well) and Nlohmann JSON. On the JavaScript code, read the comments and then skip down to line 1024; looking at the whole object holding the country-currency mapping isn't necessary. If this site doesn't support compiled scripts on the backend, then do you guys know of one does that's also free? Thanks in advance for any replies and/or help. currency_converter.cpp scripts.js styles.css index.html Edited August 22, 2018 by DragonOsman Forgot to attach HTML file Quote Link to comment Share on other sites More sharing options...
DragonOsman Posted August 22, 2018 Author Share Posted August 22, 2018 (edited) So I can't host an app with its own web server here on the free plan? Edited August 22, 2018 by DragonOsman Quote Link to comment Share on other sites More sharing options...
mike Posted August 22, 2018 Share Posted August 22, 2018 1 minute ago, DragonOsman said: So I can't host a web server here on the free plan? Basically, you have an app that connects to the webserver, and gathers data to later display it on your app. Did I understand it correctly ? Quote Link to comment Share on other sites More sharing options...
DragonOsman Posted August 22, 2018 Author Share Posted August 22, 2018 (edited) Yes, pretty much. I added SSL support because I plan to use Let's Encrypt to get a certificate once I have a domain and some space to host the app and its files on. I wanted to know if I can do that here on the free plan. Note: I have a compiled backend app that also acts as both a web server and a client. So I need a web host that would run that script as an executable (I'll have to recompile it for Linux if this place doesn't support Windows executables, though). Edited August 22, 2018 by DragonOsman Quote Link to comment Share on other sites More sharing options...
mike Posted August 23, 2018 Share Posted August 23, 2018 5 minutes ago, DragonOsman said: Yes, pretty much. I added SSL support because I plan to use Let's Encrypt to get a certificate once I have a domain and some space to host the app and its files on. I wanted to know if I can do that here on the free plan. Note: I have a compiled backend app that also acts as both a web server and a client. So I need a web host that would run that script as an executable (I'll have to recompile it for Linux if this place doesn't support Windows executables, though). If you need to execute anything other than the usual web server scripts, you will need to have a look at a VPS, or a Dedicated Server. You can get a free domain from freenom. Quote Link to comment Share on other sites More sharing options...
DragonOsman Posted August 23, 2018 Author Share Posted August 23, 2018 Well, the compiled C++ application is a web server with some added code to make a request to a currency API and to convert currencies, so it should be fine here unless .exe files aren't allowed (though I can try to get a Linux executable in that case). Quote Link to comment Share on other sites More sharing options...
mike Posted August 23, 2018 Share Posted August 23, 2018 6 minutes ago, DragonOsman said: Well, the compiled C++ application is a web server with some added code to make a request to a currency API and to convert currencies, so it should be fine here unless .exe files aren't allowed (though I can try to get a Linux executable in that case). If apache, nginx.. Can't execute it, then you can't run it on the web plan. You would need to choose a VPS, or a Dedicated Server. You could host the .html, .js and .CSS files without any problems. But you can't execute .sh nor .exe files ( unless you use a vps, or a Dedicated Server ). Quote Link to comment Share on other sites More sharing options...
DragonOsman Posted August 23, 2018 Author Share Posted August 23, 2018 (edited) Apache should be able to execute it as an added service or behind a reverse-proxy, like with a Wt app (if you know what I'm about talking about here). Will a compiled server-side application not work at all on here? I can compile the app to a Linux executable, so it doesn't have to be a .exe. Edited August 23, 2018 by DragonOsman Quote Link to comment Share on other sites More sharing options...
mike Posted August 23, 2018 Share Posted August 23, 2018 2 minutes ago, DragonOsman said: Apache should be able to execute it as an added service or behind a reverse-proxy, like with a Wt app (if you know what I'm about talking about here). Will a compiled server-side application not work at all on here? I can compile the app to a Linux executable, so it doesn't have to be a .exe. Unless it's a .html, .CSS, .JS, .PHP... You need to use a VPS, or a Dedicated Server. Quote Link to comment Share on other sites More sharing options...
InfinityFree Posted August 23, 2018 Share Posted August 23, 2018 10 hours ago, DragonOsman said: Apache should be able to execute it as an added service or behind a reverse-proxy, like with a Wt app (if you know what I'm about talking about here). Will a compiled server-side application not work at all on here? I can compile the app to a Linux executable, so it doesn't have to be a .exe. I don't know any "web hosting" service which allows you to run your own application program to handle requests. "Web hosting" is usually used to host PHP, Perl or ASP scripts using a web server and interpreter managed by the host. Limited support for other languages (Ruby, Python, NodeJS) is being developed as well by cPanel. But that uses Passenger which, again, means the interpreter is being controlled and managed by the host. Java support is also supported by some systems, which feeds the WAR file into a Tomcat server managed by the host. In other words, a key characteristic of web hosting is that the application runtime is controlled by the host. So if a host doesn't offer a runtime for a certain language (or the runtime used doesn't support all necessary features of a language), you can't host your software on it. "Web hosting" doesn't allow you to bring your own binary and run it as a persistent process. Either you need to get a server where you can manage your own runtime (like a VPS or Dedi) or you need an Application Hosting service (like Heroku). Quote Link to comment Share on other sites More sharing options...
Arcenas090 Posted September 1, 2018 Share Posted September 1, 2018 @DragonOsman I think this is old but I need to share this: You can use Heroku to run application program for free. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.