Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I found this here http://github.com/progrium/localtunnel , and it's exactly what I need, but I am working on Windows and localtunnel is Unix...
Some backgorund: I am currently developing a Facebook app and the Single-Sign-On won't work on my local Tomcat.
PageKite (disclaimer: I made this!) solves the same problems as localtunnel, but it is completely self-contained (written in Python, does not rely on ssh) which makes it very easy to install on Windows. Admittedly, you still have to deal with the command-line or at least edit the config file by hand, but a more user-friendly Windows GUI is in the works.
PageKite is free software (both the client and server) for those who want to DIY, but it's also backed by a start-up which provides all the service you need to get up and running in minutes.
A Windows client:
localtunnel for windows
Expose instantly your local webserver to the internet! See main project for more info...
UI Features
Custom service host setting
Win7 Jumplists for quick tunneling
Public key autogeneration
Specify a different host address than 127.0.0.1...
Just install ruby, then run the same commands. I just did that and works on Win7 x64.
Create an ssh key (make sure you don't already have one and will overwrite, for GitHub, etc).
ssh-keygen -t rsa -C "your_email#youremail.com"
Then upload your key to localtunnel (I had to enter my passkey setup in step above)
localtunnel -k c:/Users//.ssh/id_rsa.pub [server port]
I wrote up a description of how to get localtunnel up and running on windows via CygWin.
http://blog.wearemammoth.com/2011/09/localtunnel-windows.html
-m
edit:
apparently this link is broken - here's the cached version
http://webcache.googleusercontent.com/search?q=cache:lcJq2KO-ODoJ:blog.wearemammoth.com/2011/09/localtunnel-windows.html+&cd=1&hl=en&ct=clnk&gl=us
and here's the content in case that disappears too:
We recently integrated with the awesome Twilio service for a small project we developed. Like many of today’s APIs, Twilio offers a number of webhooks that alert you to changes on the Twilio side. This simple but great concept really opens up a lot of possibilities for API users everywhere, and I’m glad to see it spreading. Unfortunately, webhooks by their very nature require that you have a publicly accessible URI for the service to callback to, which makes developing your webhook handler a little bit difficult when you’re working locally. Enter localtunnel, a nifty little tool that makes localhost visible to the rest of the world and lets you build and debug your webhooks on your development environment without having to worry about publishing your changes every few minutes to a public site.
Unfortunately, if you’re developing on Windows, localtunnel won’t work quite as easily out of the box as it would for Mac and *nix users.
Here at WAM, we mainly develop on Microsoft’s .NET platform, which acted as a barrier to our ability to use localtunnel. Since the tool was attractive enough to warrant spending a little time setting it up on my Windows environment, however, I dug in my heels and figured out the general steps needed to get it working.
Rather than go through the number of misguided steps I followed due to my own unfamiliarity with the tools localhost relies on, I’ll cut to the chase and explain what I eventually set up to get everything working together.
First, install Cygwin. During installation, make sure you opt to install dev tools – you’ll definitely need at least Make, gcc, SSH and Ruby.
Download and unzip RubyGems into a folder that you can access under Cygwin.
Install RubyGems by changing to that temporary directory on your Cygwin bash prompt and running:
ruby setup.rb
Install localtunnel by running:
gem install localtunnel
Generate a public/private key by running.
ssh-keygen
When it prompts you for a file to save, enter nothing and press enter. It will put the file into your home folder. ‘~/.ssh’ and the path to the file is ‘~/.ssh/id_rsa.pub’ by default.
Make note of where your public key is saved.
Run localtunnel for the first time by running
localtunnel -k {Path_To_Your_Public_Key} {PORT_NUMBER}
For example
localtunnel -k ~/..sh/id_rsa.pub 8080
This will upload your public key to localtunnel and respond with something like
This localtunnel service is brought to you by Twilio.
Port 8080 is now publicly accessible from
http://3ivy.localtunnel.com ...
From then on, you can just run
localtunnel 8080
And get a temporary public URL for your local app.
One thing to note is that I had to use a port like 8080 to get it to work – something like 49581 wasn’t working and rather than fiddle with it anymore, I just set up vs.net to always build my local project to port 8080.
As always, your mileage may vary and this comes with the standard warning that this worked for me, but may not for you.
Good luck!
Somebody is working on a Java version of the localtunnel client, so stay tuned! Otherwise, no, I don't think other than setting up your own SSH tunnel there is a Windows alternative.
http://www.stunnel.org/
Stunnel is available for win32
A
Related
so I'm still learning a lot about best practices and local development workflows when working on my web projects. At the moment, when I develop a static site locally I tend to use Grunt + Bower + some static site generator to start up a local server really quickly. On the other hand when I'm working on a more PHP focused project I will set up a Vagrant box, depending on the focus. My question though is what is the best way to locally develop static sites that have one or two PHP files within them, such as a handler for a contact form? I can't run the PHP on my local server under grunt (at least as my current workflow stands — I use the browsersync plugin — is there a way to do this?), but using Vagrant seems like overkill, especially sometimes when I've settled into using a static site generator, and later realise I need to write a server side script.
You can use nginx to reverse proxy requests to your localhost (your machine). This would route *.php to other IP (a vagrant machine just for those two PHP that happened later) and all other static request to you local grunt server.
With this setup your development site would ever be in http://localhost/ or http://localhost:xxxx where xxx is some port. But, depending on the target requested (php, jpg, html, etc) the request will be routed to right place.
currently I'm looking for an open source project that gives me the opportunity to install software easily. I prefer direct calls or access with a REST interface.
I thought that CloudFoundry would fits my needs but it is'nt so.
AppFog (https://www.appfog.com/product/) comes much closer to my goal. It allows me to install Drupal, Wordpress, PhpMyAdmin, NodeJS Apps and so on.
The conclusion is that I'm looking for an project that...
is open source.
gives that possibility to install, configure and
uninstall software
is extendable when a specific software not
available
is accessible with an interface like REST.
is "hostable" on my own linux server
I would be happy for all kind of hints and tips :)
Cheers Tobias
Docker is seems to be the next big thing in the PaaS world. There are dozens new projects that build on top of docker or supporting it. For example OpenShift and Apache Stratos support docker. So if you look at solutions based on docker you can find a solution for you needs.
Right now I'm using docker for hosting couple of Drupal websites with simple bash scripts to manage them. Nginx is used for web traffic routing
Docker is open source
Gives you ability to prepare and install apps
You can build what you need on top of it
It has REST interface
It is running on nearly all major Linux distros
Its relatively easy to learn and use
Has great community
Tobias,
Suggest you look at Apache Stratos:
100% open source
Easy to Get Up and Running
Highly extensible, flexible, expandable
Uses REST APIs
Runs on Linux (Ubuntu or SUSE)
Mature (version 4)
See:
Intro article -- "Why Apache Stratos is the Preferred Choice in the PaaS Space"
http://wso2.com/library/articles/2014/05/why-apache-stratos-is-the-preferred-choice-in-the-paas-space/
Apache Stratos Project site -- which notes that "Stratos PaaS is easy to get it up and running in quick time. A developer will be able to run and test PaaS framework on a single machine to try out."
http://stratos.apache.org/
Cheers,
Michael
OpenShift is what you looking for :
it is open source and free for 3 gears for ever.
gives that possibility to install, configure and uninstall software in openshift.redhat.com or in rhc client tools.
it is extendable when a specific software not available is accessible throw DIY(Do it yourself)
with an REST interface
is "hostable" on Fedora or CentOS .
It is really easy to setup throw Eclipse.
I have a completed meteor project and is currently deployed on the meteor website. I would like to move it to my own website, which is currently hosted by GoDaddy.
How do I install Node and Mongo on my server (linux) and then run my meteor project? I received ssh access to my server, so I assume I can do this, but I'm just not sure how.
So how exactly do I proceed?
Additional Info:
I'm not exactly sure what of linux it is. On GoDaddy, it simply says linux.
When I ssh, it shows me:
-bash-3.2$:
Also, I having my website simply show the myapp.meteor.com webpage would work too. An explanation on how to do this would work.
Discover Meteor has a chapter on deployment which helps to answer this question. For ubuntu-based servers they recommend meteor-up. I haven't used it, but it's probably worth checking out. Previous versions of the book recommended meteoric.
I wrote my own set of bash scripts using a few ideas from meteoric, but I already had a lot of experience doing deployment scripting. Frankly there's nothing quite like figuring it all out yourself, but doing sysadmin tasks doesn't appeal to everyone and it can be hard to pick up in a hurry.
I found many questions about same issue in Stackoverflow. But could not find any satisfactory answers.
My problem is:
I have to run "iperf client" in client machine(assuming windows) using command line in client windows machine and get the statistics.
Currently my server is written in PHP(I am ready to shift to any platform) given that I shall be able to run iperf command on client machine.
I searched and found that, Java applet, ActiveX control or Plugins(like Google Talk plugin). Can someone suggest me the best and easiest approach here(with some reference links if possible).
You cannot run an arbitrary command on the client side using Native Client. What you can do is invoke Pepper API functions from your extension. Another thing you can do is access the Chrome extension API from Javascript. If none of these have the information you need, feel free to suggest new features on the native-client-discuss mailing list. Note that invoking "any Windows command" cannot be reasonably made part of a client-side application, due to security issues.
We recently had a project where we released beta of a big web app on our client's server. Our client requested us to do bug fixes as they come, and we tried to do it same way. Normally while building an app on our prototype server is way easier, as I just have to issue simple 'svn up' command which takes a second.
But on production environment, we do not have any version control tool available. Is it possible to automate the patching work, so that we need not to login to ftp and upload each a every file one by one?
Its very difficult to work this way. As I'm having this problem, its for sure that some of you have already solved the problem. Please share your solutions.
Looking forward to your replies... Thanks a lot for reading guys.
Depending on the tools available on the server, you could either do a svn diff -r x:y where x is the revision you last updated too and y the last revision you want to update to (probably the last revision on your repository) to generate a patch and then apply the patch with the patch command.
If rsync is available on the production platform, and you can use it (though ssh for instance) you could set up a production ready tree, rsync it on the production server, and when an update comes in, svn update your production tree, and rsync it again.
What is stopping you from installing a Subversion client on the production server?
[EDIT] So someone doesn't allow you to install the software you need on the server. The question is: What is more important? A stable production server or an arbitrary policy? If the someone doesn't listen to arguments, go to your computer, start MS Word and write this letter:
"I hereby refuse to accept any responsibility for the stability of our production system based on the fact that [insert name here] refuses to equip me with the tools to make sure that the production system contains all the necessary files and data after an installation."
Sign this, have your boss sign it and then send a copy to [insert name here]. All of a sudden, any problem that might arise after an installation will be on his turf. Or to put it more clearly: He will be responsible for any mistake you might make.
Now, all you have to do is wait. :)
Depends on the programming environment you use. In Smalltalk and the web application server like Aida/Web we can upgrade the live web applications on the fly, without stopping it.
The server is connected to the SCM of choice like Monticello for Squeak Smalltalk or Store for VisualWorks. New versions are then manually or automatically loaded to the server's Smalltalk image.