Our new Indie Games subforum is now open for business in G&T. Go and check it out, you might land a code for a free game. If you're developing an indie game and want to post about it,
follow these directions. If you don't, he'll break your legs! Hahaha! Seriously though.
Our rules have been updated and given
their own forum. Go and look at them! They are nice, and there may be new ones that you didn't know about! Hooray for rules! Hooray for The System! Hooray for Conforming!
PA Programming Thread :: PAdev.net - Need hosting for a service of yours? Check it out.
Posts
Could use some advice on the best approach here. Ideally we have an environment where the rails application runs as the owner's uid (this is a requirement) and doesn't require any admin configuration to get it under username.padev.net vhost (preferable).
It would be nice if someone can just create a new rails application under ~/rails/MYAPP/ or such, and then link ~/rails/MYAPP/public to /var/www/user.padev.net/MYAPP. If I'm understanding things wrong then point it out.
I already am using FastCGI for PHP.
I have RoR up and running, the demo application seems to be running fine (under WEBrick) but that has it under a non-80 port. I want to put this behind Apache vhosts for you guys.
BTW, is there a reason you use Mongrel instead of this embedded WEBrick? It seems like they serve the same purpose, right? I am assuming Mongrel is better performing just, and either way I would reverse-proxy from Apache to the server port? (Which I want to avoid since that is Apache config you will have to get me to do.)
Thanks guys.
The PhalLounge :: Chat board for Phalla discussion and Secret Santas :: PhallAX 2013
Critical Failures IRC! :: #CriticalFailures and #mafia on irc.slashnet.org
Ruby version 1.8.7 (i486-linux)
RubyGems version 1.8.15
Rack version 1.3
Rails version 3.1.3
JavaScript Runtime therubyracer (V8)
The PhalLounge :: Chat board for Phalla discussion and Secret Santas :: PhallAX 2013
Critical Failures IRC! :: #CriticalFailures and #mafia on irc.slashnet.org
Just wondering if dispatch.fcgi still is a thing, most guides are pretty old with it and it isn't setup by default in Rails 3, but apparently you can create and use it fine still.
With the FastCGI method, I think I would be able to set it up in a way where you could do it on your own just creating the dispatch.fcgi and the .htaccess in your app/public directory, and then linking that into your webroot. Performance isn't terribly, although it seems to indicate it is less stable and finicky than a proper Mongrel backend (have to kill the FastCGI processes to "restart" etc.)
The upside is that this is all doable from user space, you won't need root access or help. It could all be documented for our exact server.
I might have to play with things, if anyone has a Rails app they could help test by migrating to our server please let me know.
The PhalLounge :: Chat board for Phalla discussion and Secret Santas :: PhallAX 2013
Critical Failures IRC! :: #CriticalFailures and #mafia on irc.slashnet.org
Nevermind, I think I have it all working, under Passenger/mod_rails no less.
I'll write up how to get an app linked in later.
The PhalLounge :: Chat board for Phalla discussion and Secret Santas :: PhallAX 2013
Critical Failures IRC! :: #CriticalFailures and #mafia on irc.slashnet.org
How so?
The PhalLounge :: Chat board for Phalla discussion and Secret Santas :: PhallAX 2013
Critical Failures IRC! :: #CriticalFailures and #mafia on irc.slashnet.org
Awesome
Thanks Infidel!
Unofficial PA IRC chat: #paforums at irc.slashnet.org
I can't connect to PA forums from my XP netbook at home for some weird reason(gotta be something with U-verse it's firewall/router). But running it through a proxy should fix that.
Also its a great dev debugging tool to be able to hit a website from an external source. Especially when you don't know if it's something with the local network setup causing an issue.
Diablo 3 Profile
Also be careful some work environments have rules against that.
I meant going php-fpm, uwsgi, whatever the ruby equivalent is etc.
I'm a big fan of nginx because of how easy it is to proxy anything through it....
and because I've never felt comfortable enough with apache, despite using it for 10+ years.Yeah, I reverse proxy plenty with Apache. The Apache config is not what was giving me trouble, it is my ineptitude with Rails.
Don't worry, I'm giving myself a crash course and apparently I can swim!
http://www.padev.net/howto/ruby-on-rails
Let me know if there are any problems with getting your Rails apps going, or anything I could add/clarify.
Soooo glad I could get it working with Passenger. It was mostly my misunderstanding that was keeping me from using it from the get-go.
The PhalLounge :: Chat board for Phalla discussion and Secret Santas :: PhallAX 2013
Critical Failures IRC! :: #CriticalFailures and #mafia on irc.slashnet.org
I added that RoR as content type HowTo. I made the alias howto/ruby-on-rails. I would like for them to appear on the front page as they show up and drop off, and also have them indexed/linked by a page at /howto. Tell me how best to set this up, I think if I take it any further I'll do something retardo.
The PhalLounge :: Chat board for Phalla discussion and Secret Santas :: PhallAX 2013
Critical Failures IRC! :: #CriticalFailures and #mafia on irc.slashnet.org
What's the easiest way to upload files to the site? Is ftp running?
Unofficial PA IRC chat: #paforums at irc.slashnet.org
It uses ssh to transfer files similar to how FTP works.
@weretaco
Good stuff
Unofficial PA IRC chat: #paforums at irc.slashnet.org
Unofficial PA IRC chat: #paforums at irc.slashnet.org
Edit : Doh your dripping blood signature caused me to skip over your post I think.
Diablo 3 Profile
OK, stuff is uploaded but i'm having library issues apparently.
It wants to do a bundle install but I don't have permissions ( I assume you've been getting pestered about it trying to sudo me)
@Incindium my sig is magical and you will respect it.
Unofficial PA IRC chat: #paforums at irc.slashnet.org
Looks like you may not have installed rubygems? http://docs.rubygems.org/read/chapter/3
Also your messages are turned off so i can't ssh-hassle you
Unofficial PA IRC chat: #paforums at irc.slashnet.org
Might be some steps that you have to do as a fresh user to ruby/rails on our server, I'll try creating another user and get setup again.
Gems is how I have Rails, Passenger, etc. all on the system.
Yep. SSH is literally all you need.
There will never be FTP, especially one that is tied to unix accounts. Should this be more clear about SFTP in getting-started, or was it just not looked at?
The PhalLounge :: Chat board for Phalla discussion and Secret Santas :: PhallAX 2013
Critical Failures IRC! :: #CriticalFailures and #mafia on irc.slashnet.org
When new content is created, it can be automatically "promoted" to the front page. Under the admin menu's "Content Management -> Content types" settings for HowTo, for example, there should be a section titled "Workflow settings" where you can set it to default as "Published" (which just makes it viewable by non-admins) and "Promoted to front page" (which will list it on the front page). You can control the number of items on the front page, as well as the size of the preview, from the admin menu's "Content Management -> Post settings".
As for an index at /howto, see if this helps. I think it applies to Drupal 6 but the concepts are general enough to be applicable.
I'm used to Wordpress mainly.
The PhalLounge :: Chat board for Phalla discussion and Secret Santas :: PhallAX 2013
Critical Failures IRC! :: #CriticalFailures and #mafia on irc.slashnet.org
I just glanced over it again, I didn't see it.
rails new TestRail
create vendor/plugins/.gitkeep
run bundle install
Enter your password to install the bundled RubyGems to your system:
weretaco is not in the sudoers file. This incident will be reported.
Enter your password to install the bundled RubyGems to your system:
Unofficial PA IRC chat: #paforums at irc.slashnet.org
Invite me: XBox Live | PS3 | Steam
Link to me: Number Sorter | Achievement Generator
In the latter, we're basically a support network for your Linode.
edit: damn you bowen!
The PhalLounge :: Chat board for Phalla discussion and Secret Santas :: PhallAX 2013
Critical Failures IRC! :: #CriticalFailures and #mafia on irc.slashnet.org
On the weird side I just got an email for a webinar about moving practice management shit to the cloud. Which is an incredibly terrible idea I can't believe anyone would suggest such a thing. Webinars that is, but the cloud thing is like way more stupid.
Funny, I just got one for Keeping Your Business IT Secure in 2012.
I'll take a look at the Gems stuff when I'm home likely. The new user stuff anyway, I may try something to see if I can fix it without testing myself.
The PhalLounge :: Chat board for Phalla discussion and Secret Santas :: PhallAX 2013
Critical Failures IRC! :: #CriticalFailures and #mafia on irc.slashnet.org
And we (users of padev) are multiple users on our one VM?
Invite me: XBox Live | PS3 | Steam
Link to me: Number Sorter | Achievement Generator
A node is a VPS. It is a server that can be scaled up or down in resources. It is one shared Linux system, so you do not have root but a general user account. Others share it.
At least for our hub node. We currently have one node, a Linode 1024 at carbon.padev.net
The PhalLounge :: Chat board for Phalla discussion and Secret Santas :: PhallAX 2013
Critical Failures IRC! :: #CriticalFailures and #mafia on irc.slashnet.org
Are you running multiple apache daemons? Would I create a www root in my user folder and have you put a symlink somewhere else? Are you handling the site config files, or do we have access to a2ensite and the like?
Invite me: XBox Live | PS3 | Steam
Link to me: Number Sorter | Achievement Generator