![]() |
Setting up GS on pagodabox.com - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: Installation & Setup (http://get-simple.info/forums/forumdisplay.php?fid=5) +--- Thread: Setting up GS on pagodabox.com (/showthread.php?tid=4750) |
Setting up GS on pagodabox.com - samrocksc - 2013-05-16 Anyone had any luck with this? I have been playing with Boxfile configurations for two days now. What non data/admin files need to be consider read/write? If I can get this to work I can move both of my business sites over to a way cheaper and git deployable host. I had no problem deploying on github pages, but this Boxfile bit is a bit of a different beast. RE: Setting up GS on pagodabox.com - shawn_a - 2013-05-16 Quote:Before explaining all the possible configurations, please note that our infrastructure uses Apache. We recognize and read .htaccess files where much of your app's configuration takes place. Why is a boxfile needed ? What doesn't work ? RE: Setting up GS on pagodabox.com - samrocksc - 2013-05-16 This is my first time deploying GS not off of FTP. I'm trying out a new host. In essence with ftp I could chmod my files to make them writeable. A Boxfile would be needed in this situation to make writeable directories. Here is the documentation on the Boxfile: http://help.pagodabox.com/customer/portal/articles/175475 Here is what I would normally chmod, so I'm just adding them as writeable on the Boxfile instead: web1: name: GetSimple shared_writable_dirs: - /backup - /data - /admin - /theme I would remove /admin after install so it could auto remove install, and setup files respectively. However I get 404'd when I go to try to /admin/install.php manually. When I visit the target root of the file I get this: Warning: include(admin/inc/common.php): failed to open stream: No such file or directory in /var/www/index.php on line 34 Warning: include(): Failed opening 'admin/inc/common.php' for inclusion (include_path='.:/usr/lib/php-5.3.8/php') in /var/www/index.php on line 34 Fatal error: Call to undefined function exec_action() in /var/www/index.php on line 37 I tried including a default version of PHP into the Boxfile. This is my first time using a Boxfile or YAML, it's new to me. Perhaps someone has some experience? I'll gladly return a nice user friendly pagodabox.com guide if I can get an answer. RE: Setting up GS on pagodabox.com - shawn_a - 2013-05-16 I thought you only needed a boxfile if you needed shared write across apps. Sounds like your includes are failing. Also install is in root not admin RE: Setting up GS on pagodabox.com - samrocksc - 2013-05-16 (2013-05-16, 02:36:12)shawn_a Wrote: I thought you only needed a boxfile if you needed shared write across apps. I had just cloned the repo from github and uploaded. /admin/install.php is the file that should automatically be running correct? I'll try to download it when I get home. When I change file permissions locally and push it, it gives me 404's on anything in admin, and include problems on index.php. I tried it on another repo(I have 2 sites running GS I'm trying to switch to pagoda with) and got the same result. RE: Setting up GS on pagodabox.com - samrocksc - 2013-05-16 I went and downloaded straight from the site instead of cloning from git, and I still get the same thing changed the htaccess to read/write, and i'm still getting this error Unable to continue: Unable to write the configuration file. CHMOD 755 or 777 the /data, /backups folders & sub-folders and retry. RE: Setting up GS on pagodabox.com - shawn_a - 2013-05-16 Well that sounds a little better, than include errors. Ill have to try this pagodabox thing out, looks very neat. RE: Setting up GS on pagodabox.com - shawn_a - 2013-05-16 Quote:Because your app code on Pagoda Box is in a read-only environment, it doesn’t accommodate running install scripts. The suggested workflow is to run install scripts locally, then push the results up to Pagoda. That being said, it seem you do need to move a full site, and have a boxfile with write configs RE: Setting up GS on pagodabox.com - samrocksc - 2013-05-18 Yeah, I have been playing with the Boxfile, I can get it for the most part to run, but it's hit or miss for what resource in the CMS is getting pulled. According to what I look at for the most part data, themes, backups, admin all need to be included into the Boxfile. It's almost like the Boxfile doesn't set everything recursively. They are an awesome host, and probably the best I've found yet that uses git for deployment. All of their pre-packaged CMS systems are all sql based.... RE: Setting up GS on pagodabox.com - shawn_a - 2013-05-18 I couldn't get it working at all. Ill try to clone their repo and see about pushing to it instead of pulling my repo. And yes I do not think its recursive, it doesn't really say shit. RE: Setting up GS on pagodabox.com - samrocksc - 2013-05-18 I am contacting their support. I'll switch 5 sites over to them if I can get GSCMS to work. I need some proof of concept though before I spend money on them ;0). I'm pushing http://www.loficoffee.com right now to see. http://loficoffee.pagodabox.com. If we can figure out the Boxfile config we might be able to get them to put GS in their app cafe ![]() RE: Setting up GS on pagodabox.com - shawn_a - 2013-05-18 Have you copied a working site yet? I know the install script wont work at all I tried everything. RE: Setting up GS on pagodabox.com - shawn_a - 2013-05-19 Got it working it works great, i get CSRF on everything, i gotta figure that out, probably related to the ip crap we haven't fixed yet. There is a problem writing htacess in root as well as removing install files. Since you cannot grant write on root, although i have not tryed yet. It appears it will not pick up github clone commits, only changed made to the pagoda git after the initial clone, might be a bug or something I am not understanding. I have to finish up my boxfile with php modules and stuff. RE: Setting up GS on pagodabox.com - samrocksc - 2013-05-19 Hey! Sent an email to their support to understand how the filesystem works, here is the reply: Quote:> 1) .htaccess setup will not work? It looks like the default install for GS would be kind of strange. I'm going to setup a Github repo for it, and start fiddling until I can do a clean install on pagodabox. Then people can just fork it if they want to install on it. I for one think it would be rad to have an install option on their app cafe, so folks could easily use pagodabox for GS installs. Anyways, I wasn't able to finish the above email, but here is what I can ascertain: Whatever "single file" items we have that are not writeable, we need to create two copies of and then create hooks. Do you have a github repo setup for what you are using? If you do I will fork, install and try out a couple things. I think there a couple single files in /admin that need to be writeable. Thoughts? RE: Setting up GS on pagodabox.com - samrocksc - 2013-05-19 I got to the point where I was getting CSRF while migrating my existing copy of an install over. I honestly think that is because my Boxfile didn't have the proper includes. The hard thing is figuring out which folders have writable content. |