Is it possible to host a sencha touch 2 wep app on Heroku?
I know, Heroku does not have Sencha in library list, but maybe I can use Node.js or something else to push the app.
I really appreciate if you know a solution or an example/instruction how to do this.
Thanks!
Yes it's definitely possible, I already tried two options, both worked for me.
You could use Node.js, then you simply have to write a web server to serve your static content.
Probably the easiest solution is to create an index.php file and let heroku detect your app as PHP. This gives you an Apache web server that you can use for your Sencha Touch app.
Hope this helps.
I found a solution as well, which works pretty well for me:
Created an express project based on NodeJs
Use router for pointing to the sencha files
Deploy on heroku as a node.js https://devcenter.heroku.com/articles/nodejs
Beside the heroku hosting gain even NodeJs advantage , pretty much having JS as a server side and client side language.
Related
I have been developing a Web app in Lua via Sailor MVC framework on Windows with MySQL and Apache 2 using mod_lua.so.
Is there a way to run it successfully on Heroku platform or not?
Regards
Heroku doesn't officially support Lua (ref: https://devcenter.heroku.com/articles/buildpacks#officially-supported-buildpacks). That being said, there appear to be a number of third-party buildpacks that give you a Lua runtime. The first couple that showed up on Google seem somewhat stale. The good news is that you can create your own buildpack if none of the existing ones work for you.
i'd like to know what is the difference between heroku and openshift, for now i'm going to use the free package for my blog, i've noticed the openshift has more supported techs.
what about the limitation of each one of them
Both Heroku and OpenShift are open platforms.
Neither one has any 'lock in', so you can easily move your app in and out of each service with minimal hassle. They all use standard open source tools, and work as expected.
The main difference is ease of use. Heroku is quite a bit simpler to use that OpenShift. Heroku basically handles 100% of your application deployment. You basically write your code in a git repo, then say 'git push heroku master' and your code will magically be running on Heroku.
OpenShift, on the other hand, requires more work. It's not uncommon to setup and tweak your own web servers, infrastructure components, etc.
The honest answer is that you can't really go wrong either way. I've been using Heroku for years and love for both big and small apps, but OpenShift is fine as well.
I am developing a dynamic web site hosted on parse.com using Express. I have to deploy it when I want to check changes to my site design. Is there a way to launch this on my local machine?
If there is no way, can I check my site design quickly?
Yes there is:
https://github.com/mariusciocan/parse-cloud-debugger
this one works well for me.
Super new to programming.
Anyway, let's say I have a script that does something simple, like tells you the number of words you typed into a box (upon hitting a submit button) written in Ruby using Sinatra.
If I wanted this text box to show up on a webpage, like mysite.com/simple_app how would I set that up?
I apologize for the super noob question, but I have no idea where to start with this.
I checked out this question (http://stackoverflow.com/questions/9489803/how-to-turn-ruby-script-into-a-web-app) and since I already have working w localhost in Sinatra, I'm kind of wondering what's the next step.
I would very much recommend you try out Heroku.
As you're relatively new to programming, you don't want to mess with server stuff yet. Heroku handles most of the server configurations so you can focus more on your application.
It also offers a free account, with limitations of course. But it's very nice for beginners, compared to VPS solutions which normally cost 20 bucks a month.
Check out this great article on deploying apps with Sinatra and Heroku:
Sinatra + Heroku = Super Fast Deployment
And also how to deploy any Rack-based applications on Heroku:
Deploying Rack-based Apps on Heroku
If you want to just deploy it somewhere and don't want to mess about with servers, try pushing your Sinatra app to Heroku. They have some fairly comprehensive documentation to get you started.
If you have your own server, it's a bit more involved, although what you trade off for simplicity you gain in control. The simplest thing that would work would be to check out a working copy of your app on said server, then run it like you do on localhost.
Google ruby deployment. It's a bit of a minefield, although the options are much more attractive than they were 5 years ago. For the simplest thing(s) that work, do either of the above. For anything else, you're out there with the rest of us ;)
I'm new to RoR, so I understand that the way I should be deploying a rail app is using Passenger. But I've been unable to find a thread where someone did all their development using their webserver/host, it seems everyone develops their app locally, then deploys it. Is there a way to work and edit your rail app directly on the server it's going to be hosted on? I'm using Rubymine to work on my app. (I'm basically trying to see if there is a straightforward way that I can develop code side my app - upload to server, see the results keep developing)
Thanks for the help!
Usually, capistrano is used for such a task.