Heroku, like a git repo? [closed] - ruby-on-rails-3

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I am having a problem wrapping my brain around Heroku. I created a small ruby on rails app, got it deployed to the free version of heroku and used a lot of git calls to do so. I have to say, can heroku be used as like a bitbucket as well as a host for code? Or is there a good doc out there that shows how to work with git repos and heroku both. I am newish to git so perhaps im just not getting the flow. I know I have a local commit I can do but then I can push and pull from a repo (and i was doing this to get heroku working) is that my repo or should I push and pull to like bit bucket and then get my branches/merges working and then for a production push goto heroku?
whats the typical work flow with heroku I guess I am asking, it isn't clear to me.

I don't know about typical, but for me, I've added the heroku destination as a remote according to their instructions and just push to it, while keeping my development repository on github, bitbucket, or whatever.

can heroku be used as like a bitbucket as well as a host for code?
Yes, all git repos are just git repos so when you do a git push, there is a full copy of all history at that location. Because of this try pushing from one git repo and then cloning to another.
You can do anything with the heroku remote that you can do with any git remote. Try pushing a branch to heroku.
git co -b branch; git push heroku branch;
After that heroku will have a full git branch.
I recommend you check out the awesomeness of a decentralized VCS.
http://en.wikipedia.org/wiki/Distributed_revision_control

Related

Is NginX good for Forums? Is NginX really fast? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I am migrating from a shared host to VPS for the first time and I am in a dilemma wondering if I need to go with NginX or still stick with Apache. Atm I use Apache for my site that runs on phpbb 3.0.11. It has forums along with static pages. When I was googling info on NginX, it appears to be faster than Apache and works well in serving static pages. So my questions are:
1) Is NginX good to use for forums?
2) How is NginX in serving Dynamic pages from MySql?
3) Is NginX really fast compared to Apache or is it overrated?
4) Do I stick with Apache or is it worth taking a chance and trying out NginX for my phpbb forum?
Any advise please.. I am in such a dilemma and I am hoping someone who have had practical experience with NginX and Apache can shed some lights!
If you know Apache, just stick with it. The learning curve for Nginx is quite high, and not needed here if you haven't already done basic tuning.
Make sure that you are loading APC and memcached with say 16M cache.
Use APC for Opcode caching, and acm_memcache for variable caching.
This will make phpBB a lot faster.

how to restart a personal wireless netgear router with vb.net? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
How do configure an netgear wireless router in vb.net code? I want to restart my router and thought about disconnecting clients. This might be used to help a relative with their wireless router.
Edit:
OS Information:
Windows 7 SP1
.NET Framework 4.5 or above
First-off: you should never have to reboot your router under any circumstances (short of a firmware upgrade). If your modem/router "breaks" occasionally and requires a reboot to resume normal operation then something is wrong with it and you should seek a warranty replacement. A line de-sync should not require a reboot either.
With that disclaimer out of the way: there are two ways you can achieve your goal:
The first is to use the Telnet administration features present in your Netgear router (assuming they're enabled and operational). Writing a Telnet-client in code is trivial and an exercise left to the reader. It's just a matter of knowing the right commands to send to get it to reboot.
The second is to write a web client (using HttpWebRequest) that sends the series of HTTP requests to the router in the same way a human-directed-browser would if they were doing the reboot themselves. Use a tool like Firefox's "Live HTTP Headers" to see what HTTP requests need to be sent. Be wary of problems with cookie retention in HttpWebRequest.

How to Setup Mercurial Server In Ubuntu To Serve 60 repositories [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I want to have around 60 repositories of projects and I want to serve them from a dedicated remote server(ubuntu) with the help of mercurial-server so that all my developers will be able to update their changes. I have followed this article in order to do that but I am not clearly able to understand. I have some following questions:
How to install mercurial-server? Does all repo will be controlled by "hg user" (whose directory is at server/home/hg) and does the user will be automatically created during installation of mercurial server(like mysql) ?
Do I need to install mercurial client(i.e. apt-get install mercurial) on my remote server? I know the client side must install mercurial to push/pull repo to/from remote mercurial server. What exactly the diffence between mercurial and mercurial-server ?
Note:
Please provide me a abstract (yet understandable) steps to setup mercurial server in order to serve some project from my dedicated ubuntu server if possible.
(i.e. prerequisites>install>setup>authentication for push/pull>web interface).

Free project hosting site easily integrated with Hudson/Maven etc [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I want to host my java project on a free project hosting site.
I want to use SVN (if possible integrated in NetBeans).
I want the site to be easy to use and offer an option like Hudson system to control my nightly build/test execution.
Is there such a site(s) ?
Thank you in advance for the answers.
If there is an alternative that you think it's better than the SVN or something else, please use enough argumentation to convince me. I accept any proposals that you have tried out.
I want the site to be easy to use and offer an option like Hudson system to control my nightly build/test execution.
Hosted Continuous Integration for Java is not something easy to provide for free by nature (because it's very CPU and disk intensive), so you won't find that on "big" public forges.
The only place I know that offers CI (and subversion, mailing list, wiki, etc) is CodeHaus.org. Might be an option if your project is "eligible".
If not, either run Hudson yourself (and just plug it on any hosted Subversion repository, e.g. on Google Code) or... use a commercial service like CloudBees, MikeCI, CI Foundry. See also Hosted Continuous Integration.
Actually my question was something like a consulting 2 questions.
Here are my answers to them.
Find SVN free source control repository
I have stopped on two options:
Java.net - this seems like a repository with future and it's getting upgraded with Kenai technology, so I hope it's stable and fast.
kenai.com - Very nice looking integration with NetBeans! Easy to use and with lots of features like integrated issue-reporting. Unfortunately, this one is dead and projects are getting migrated to java.net. So stick with the first proposition.
Integrate with Hudson
I haven't installed and configured a Hudson yet, but I guess it won't be such a problem. We'll see.

What web server to use for Lua web development [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
What web server (and why) should I use for Lua web development?
There are a few Lua-based webservers around:
Xavante seems to be the most popular.
Haserl is nice and small.
Nanoki is not strictly a webserver, but a nice small pure Lua wiki engine worth studying. As for the Lua wikies, there is also Sputnik, which is fully featured and very flexible, but is a bit on the slow side.
There is mod_lua (ex mod_wombat) if you prefer Apache. Looks like it would make it into the next Apache distribution as a core module.
Note that it is not so hard to write a FastCGI Lua module.
There is also Luv Lua MVC web-framework project (GitHub page). It is not mature yet, but may contain some interesting insights.
Update. Some more frameworks to check out:
Luvit: http://luvit.io/ (too node-like for my taste)
ngx_lua module for nginx: http://wiki.nginx.org/HttpLuaModule
TIR for mongrel2: http://tir.mongrel2.org/
Ophal: http://ophal.org (web platform)
lev: https://github.com/connectFree/lev
Turbo: https://github.com/kernelsauce/turbo
We've been working on the ngx_lua module for nginx, which supports 100% non-blocking network traffic to mysql, PostgreSQL, memcached, other http services, and more, hence outstanding concurrency level and over-all performance :)
http://github.com/chaoslawful/lua-nginx-module
and we're using it in production :)
The best web server I can think for lua web development is mongrel2. Take a look on TIR framework, which, IMHO, is the best lua use for web development these days.
For development, it can be handy to run a small test server. A good candidate in particular for Lua web development is the Xavante server which is part of the Kepler project. Aside from some of the supporting Kepler modules , Xavante itself is written in pure Lua.
For production, the new mod_lua (which had been known as mod_wombat before the Apache team accepted it into the core set of modules) running on Apache would seem to be a well-respected choice.
there is as well the LuCI project [1]. which is the LuaConfigurationInterface, the web based mangement frontend for OpenWRT (embedded Linux).
The LuCI guys wrote also a very small webserver, called lucittpd.
LuCI is an MVC as well.
And in production state ;)
[1] http://luci.subsignal.org
Recently, Lua support was added to the http://github.com/valenok/mongoose web server, check out pre-build windows binary at http://code.google.com/p/mongoose/downloads/list