Mercurial on share host without SSH - mercurial

I am trying to get mercurial to work on a shared host without SSH access.
I have looked through https://www.mercurial-scm.org/wiki/PublishingRepositories and seen different means to publish my repository to the web but not been able to get any method to work because of certain dependencies.
For example, I looked at hgweb, it says
"First of all, you need to have a Python installation that can access the mercurial package. Verify this by running python and typing the following:
import mercurial"
I havent worked with python before and as such not sure where to run the "import mercurial" command. i am guessing via ssh for which i do not have access.
Also came across SCM-Manager, the quick guide just talks about downloading the source and extracting the content to your server, SCM manager depends on java and also not sure how to get that to work over the web.
Which of hgweb, SCM-Manager and RhodeCode is possible to set up without ssh access?

Short Answer: NONE
But you can at least try, if you have Java Application Server running (Tomcat, GlassFish etc), run SCM-manager as Web application (*.war)

Related

Is it possible to run polymer locally?

Might be a very stupid question, but right now I'm running a project using Polymer-Project elements on a remote server.
I'm going to be away from network for a while, but I still want to work on this project offline. However, I can't get it running locally on a windows machine, even though all the dependencies are CSS/HTML/JS. Is there something I'm missing? All the paths are relative, and I double-checked them just in case.
Yes, it's possible.
You only need to have a web server running on your computer, as Polymer pages must be served from a web server.
Apache, ISS, Nginx or other HTTP servers will work; If you have no server in your computer, you need to follow the instructions in https://www.polymer-project.org/docs/start/tutorial/intro.html to start a quick Pyhton HTTP server.
Yes it is possible. You just need a local web server.
For Mac/Linux,
Python comes generally pre-installed. Hence, you can directly start a web server from any directory using,
python -m SimpleHTTPServer
If python is not available, then you can install MAMP for Mac and XAMPP for Linux system to start a local web server.
For Windows,
You've got WAMP that does the same thing for windows.
For a lightweight static web server, you could use Mongoose that runs on all three platforms mentioned above.

Is it possible to use OpenShift without using rhc?

I am trying to get an application running on OpenShift but after trying to create an ssh key on Ubuntu using ssh-keygen I ran into permissions problems. This is because I find I have no need for the rhc client if it only automates this process but bloats my computer (laptop) with a ruby installation.
I find that it would be best to have an alternative for Ubuntu (Linux) users. Is it possible to make this happen or do I have to go the rhc way?
You get a long way without the rhc command line tool. Obviously you can create your ssh key yourself and add/mange it via the OpenShift website. You can also create your application there and add cartridges. When it comes to starting the app, you can usually do that by jsut pushing your git repository. Last but not least, you can ssh onto your OpenShift gear and do a lot from there, for example view the log files.
That said, the rhc client is your one stop client for all this (and more). So even if you might not need it right now and some task are in fact done easier without it, I would still recommend to install it. A lot of information/tutorials are using rhc and w/o enough experience you will not know how to achieve a certain task in a different way.

Accessing git to install mysql on server on gandi.net

I purchased a Simple Hosting instance using node.js/mysql on gandi.net.
I'm trying to set up my database, but I'm having some issues with connectivity.
I found some sample code to connect and talk to the database (which I set up via PHPMyAdmin), but it requires the mysql module (which I assumed would already be installed on my instance, but since I don't know how any of this works, that's fine).
I get the error:
Error: Cannot find module 'mysql'
in my log file.
I'm at a loss though as to how to actually install the module.
I tried to use their SSH console (via a firefox plugin), but my SSH credentials don't have the permission to run 'npm install mysql' and sudo isn't installed.
I also tried to install Git for Windows from mysisgit but I have zero idea how to connect to my remote server from this tool.
I'm just looking for some advice on how to proceed. I'm totally new and am engaging in learning this for personal development, so I don't have a lot of info on where to turn. Thanks!
The problem was that I wasn't using SSH to install to the correct directory (I was just trying to run it directly when I logged into shell). I needed to navigate into my web/vhosts/default/ directory, then the 'npm install mysql' worked absolutely fine.

Comet (Ajax Push) in Godaddy dedicated server?

I want to know if it's possible and I'm looking for tutorials to set it up.
APE website says that knowledge of JavaScript programming is sufficent to follow the tutorial however I haven't been able to puzzle even the first 2 lines of the tutorial.
I'm using Ubuntu. After downloading APE I have no idea what to do. I already set up SSH to access the server.
What should be my following steps or where can I find an easier to tutorial to use comet be it through APE or something else?
Assuming your GoDaddy server is running some flavor of Linux, I don't see any reason it would not be possible. I was just looking over the documentation and I am not clear on what part you are having trouble with. What Linux distribution are you using? Do you have SSH access?
If you have ssh access and a root account you should be able to just follow the instructions to get APE running on the default port.
If you are running a Debian dist (Ubuntu and others) it looks like you should download the source from Git and compile it. There are instructions for the compilation there. You can learn about what you need to do wth Git by search for "clone git".
If you can be more specific about what you are having trouble with, we can probably be more helpful. But ultimately you should be able to install this on any dedicated server without issue.

Package Java web app along with jboss, mysql and activemq for deployment

I have a springframework web application that uses JBoss, MySQL and ActiveMQ.
At the moment, I have to install and configure JBoss, MySQL and ActiveMQ and JBoss manually.
What is the best way to package the application so a user can maybe do a one click install (on Linux platform, maybe Windows too?)
The "proper" way to do it is to pull down the source or src.rpms (or the equivalent of src.rpms depending on your distro) and repackage them correctly. If you have never messed with packaging linux application then this will probably take you a long time and will yield mediocre results unless you are willing to invest a lot of time.
An easier method is to write a shell script. Copy every shell command you type into a .sh file and run that file as a privileged user. If you edit files manually (with vim, emacs or gedit) instead edit the files with perl, sed, and awk, or just crush the files by curl'ing the modified version from a local webserver or copied from scp.
You can include the commands to install the packages as well as configure them in the script if you like.
As far as ActiveMQ is in question, you can always embed it in your application. Take a look at http://activemq.apache.org/how-do-i-embed-a-broker-inside-a-connection.html for more info