Re: [Radiant] Questions about deployment
Mohit Sindhwani wrote: [EMAIL PROTECTED] wrote: I am new to Radiant and even newer to deploying Radiant sites, and the documentation I can find helps little. I have two apps running well on my laptop but it's time to get them up on my shared hosting account at Railsplayground and I am unsure about the best way to do that. Railsplayground's stellar [cough] documentation has, once again, not failed to disappoint. Has this not helped? http://wiki.railsplayground.com/railsplayground/show/How+To+Install+RadiantCMS I realize that the message may sound curt, so I apologize if it does. I have found that a basic Radiant install is easy... and as long as you use the same database, it's easy to migrate/ manage the databases also. I'm going to probably try to deploy to Railsplayground in a few days myself (I've currently got 2 sites working on HostingRails - and it works great). Cheers, Mohit. 6/8/2008 | 1:18 AM. ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Questions about deployment
On Sun, 2008-06-08 at 01:18 +0800, Mohit Sindhwani wrote: Has this not helped? http://wiki.railsplayground.com/railsplayground/show/How+To+Install+RadiantCMS I realize that the message may sound curt, so I apologize if it does. I have found that a basic Radiant install is easy. Actually it doesn't help much. That page on the railsplayground wiki describes the process to *install* Radiant CMS, not how to deploy it. Casper's tutorial gets me most of the way there, and I'll just modify my old Cap recipe to get it working with RP. I was just curious how everybody was managing their projects. It seems that Radiant is close enough to a normal Rails project that it can be managed the same way with svn or git. ~Nate ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Questions about deployment
Hi Nate, I recently updated the guide for deploying Radiant to Dreamhost, another shared host: http://wiki.radiantcms.org/How_To_Deploy_on_Dreamhost I don't know Railsplayground, but assuming you have SSH access you should be able to follow this guide, substituting the steps for creating the website and a database with whatever you do at Railsplayground. Also, my blog entry has examples of rolling two popular extensions into the deployment package: http://casperfabricius.com/blog/2008/05/24/radiant-cms-on-dreamhost-with-phusion-passenger/ Cheers, Casper Fabricius On 02/06/2008, at 18:55, [EMAIL PROTECTED] wrote: Hey all, I am new to Radiant and even newer to deploying Radiant sites, and the documentation I can find helps little. I have two apps running well on my laptop but it's time to get them up on my shared hosting account at Railsplayground and I am unsure about the best way to do that. Railsplayground's stellar [cough] documentation has, once again, not failed to disappoint. On the Rails apps that I have built from scratch, I have always used subversion for version control and Capistrano for deployment. Is it possible to use Radiant the same way? Can a Radiant app be capified? I am using the default sqlite3 db. I just wanted to ask before I went through the whole process and screwed something up. How are people deploying their Radiant apps? What is the ideal scenario for development and deployment? Any thoughts would be greatly appreciated. ~Nate ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Questions about deployment
Thank you for this, Casper. I'm a Dreamhost customer and and this has cleaned up some 'failed to start' problems I've been having. Its also made deploying some examples I have on my laptop easier since now I can just have Apache deal with them on an as-needed basis instead of having to do a cd ~/Ruby/application; ./script/server each time. However there is one aspect of deploying on Dreamhost that I'd like to ask the group here about, and that is getting the content of the database out there. My first deployment of Radiant on Dreamhost last year I had developed on my laptop using SQlite3. The laptop runs Linux, not Windows. I used a CSS file in the file system (lacking sophistication and understanding of Radiant at that time). I SFTP'd the files, including the database, to the Dreamhost machine but the application wouldn't start. It couldn't open the database. I don't know if this was a word-length, library or version problem. The application content was small enough that I could create a new database on Dreamhost and paste the pages in. Radiant is more sophisticated now. The sites I'm developing use extensions such as attachments, galleries, and of course the brilliant styles_n_scripts. Even before the site content is added there is a lot of the site structure in the database now. And before adding 'real' content I find that I lay out the hierarchy/structure and few pieces of boilerplate like a 'site map', 'About', and content and feedback pages. So I have a very simple problem of how do I get this database that I've developed as a the template or basic site content out to Dreamhost? Reality is that by the time I've worked a bit it is more than just a template, not least of all because the actual CSS and actual logos and and snippets that deal with names etc are in the database too, as well as many place-holders. You know how it goes. I've just spent a very futile week prior to deploying my new web site on Dreamhost trying to convert a Sqlite3 database to a MySQL database on my laptop. I tried this so that I could debug any problems ahead of time. There have been nothing but problems. I have had no success. I started with the import/export extension. It doesn't work. At the very least it only knows about some of the tables. I corresponded with Sean about the problem and tried his suggestions. Zilch. I also searched the web. There are many articles about converting Sqlite3 to MySQL. The ones on the MySQL site are plain wrong! Others admit to things like differencing SQL syntax but their 'fixes' are incomplete. Even after much hand editing of the Sqlite3 .dump file MySQL kept erroring. Some problems I could not find any reason for even though the revised syntax was A-OK according to the MySQL documentation. Chris Dwan posted a tool that allowed copy from one DB to another. http://blog.radixhound.com/2008/4/28/backing-up-radiant-cms-using-sqlite3 I'm going to try this today on my laptop. I'll report on how it goes. However there is still the problem of getting the database running on Dreamhost and getting content into it there. The reason I'm writing about this at length is that I am very surprised that Rails doesn't have tools for all this as part of its baseline. Rails2 has moved to Sqlite3 as its default, and that's fine for development. But I get to wonder if there are going to be more projects that are like Radiant in that the database has a template and structure that is part of the application and needs to be 'portable' as well. Rails really needs something that can do database export/import in a comprehensive and complete manner. Casper Fabricius said the following on 03/06/08 03:17 AM: Hi Nate, I recently updated the guide for deploying Radiant to Dreamhost, another shared host: http://wiki.radiantcms.org/How_To_Deploy_on_Dreamhost I don't know Railsplayground, but assuming you have SSH access you should be able to follow this guide, substituting the steps for creating the website and a database with whatever you do at Railsplayground. Also, my blog entry has examples of rolling two popular extensions into the deployment package: http://casperfabricius.com/blog/2008/05/24/radiant-cms-on-dreamhost-with-phusion-passenger/ -- Expecting life to treat your fairly because you are a good person is like expecting an angry bull not to charge because you are a vegetarian. -- Shari R Barr ___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Re: [Radiant] Questions about deployment
Hi Anton, I feel your pain, as I also follow the pattern of filling content into the database locally, and then deploy with that data later. I use MySQL locally and on Dreamhost, and if you can live with that (MySQL is quite easy to install and manage), you can do as I do, which is not optimal or beautiful, but quite effective: Use mysqldump. To export your local database, run this command from the root of your application: mysqldump -u root radiant_development ./db/dump.sql Then upload the file to Dreamhost, and import it (make sure the database is created and empty): mysql -u dh_mysql_user -pdh_mysql_pw radiant_production ./db/dump.sql If you have uploaded files using gallery, page_attachments or something else locally, you must also upload these manually from public to public. /Casper On 03/06/2008, at 13:45, Anton Aylward wrote: Thank you for this, Casper. I'm a Dreamhost customer and and this has cleaned up some 'failed to start' problems I've been having. Its also made deploying some examples I have on my laptop easier since now I can just have Apache deal with them on an as-needed basis instead of having to do a cd ~/Ruby/application; ./script/server each time. However there is one aspect of deploying on Dreamhost that I'd like to ask the group here about, and that is getting the content of the database out there. My first deployment of Radiant on Dreamhost last year I had developed on my laptop using SQlite3. The laptop runs Linux, not Windows. I used a CSS file in the file system (lacking sophistication and understanding of Radiant at that time). I SFTP'd the files, including the database, to the Dreamhost machine but the application wouldn't start. It couldn't open the database. I don't know if this was a word-length, library or version problem. The application content was small enough that I could create a new database on Dreamhost and paste the pages in. Radiant is more sophisticated now. The sites I'm developing use extensions such as attachments, galleries, and of course the brilliant styles_n_scripts. Even before the site content is added there is a lot of the site structure in the database now. And before adding 'real' content I find that I lay out the hierarchy/structure and few pieces of boilerplate like a 'site map', 'About', and content and feedback pages. So I have a very simple problem of how do I get this database that I've developed as a the template or basic site content out to Dreamhost? Reality is that by the time I've worked a bit it is more than just a template, not least of all because the actual CSS and actual logos and and snippets that deal with names etc are in the database too, as well as many place-holders. You know how it goes. I've just spent a very futile week prior to deploying my new web site on Dreamhost trying to convert a Sqlite3 database to a MySQL database on my laptop. I tried this so that I could debug any problems ahead of time. There have been nothing but problems. I have had no success. I started with the import/export extension. It doesn't work. At the very least it only knows about some of the tables. I corresponded with Sean about the problem and tried his suggestions. Zilch. I also searched the web. There are many articles about converting Sqlite3 to MySQL. The ones on the MySQL site are plain wrong! Others admit to things like differencing SQL syntax but their 'fixes' are incomplete. Even after much hand editing of the Sqlite3 .dump file MySQL kept erroring. Some problems I could not find any reason for even though the revised syntax was A-OK according to the MySQL documentation. Chris Dwan posted a tool that allowed copy from one DB to another. http://blog.radixhound.com/2008/4/28/backing-up-radiant-cms-using-sqlite3 I'm going to try this today on my laptop. I'll report on how it goes. However there is still the problem of getting the database running on Dreamhost and getting content into it there. The reason I'm writing about this at length is that I am very surprised that Rails doesn't have tools for all this as part of its baseline. Rails2 has moved to Sqlite3 as its default, and that's fine for development. But I get to wonder if there are going to be more projects that are like Radiant in that the database has a template and structure that is part of the application and needs to be 'portable' as well. Rails really needs something that can do database export/import in a comprehensive and complete manner. Casper Fabricius said the following on 03/06/08 03:17 AM: Hi Nate, I recently updated the guide for deploying Radiant to Dreamhost, another shared host: http://wiki.radiantcms.org/How_To_Deploy_on_Dreamhost I don't know Railsplayground, but assuming you have SSH access you should be able to follow this guide, substituting the steps for creating the website and a database with whatever you do at Railsplayground. Also, my blog
Re: [Radiant] Questions about deployment
On 2008/06/03, at 11:22, Casper Fabricius wrote: If you have uploaded files using gallery, page_attachments or something else locally, you must also upload these manually from public to public. I ran into this same issue (with page_attachments), so I just switched it to use Amazon S3 for storage instead of the file system. You can even “patch” attachement_fu to add cache and expires headers to the files you upload to Amazon. Works perfectly so far. john___ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant