Hosting problem

2 views
Skip to first unread message

potworyk

unread,
Aug 11, 2009, 2:32:49 PM8/11/09
to Pluf Users
Hi,
First, from that what I've read in documentation pluf seems to be
great tool. Thank you developers!
But there is a problem with usung it in production. Most of (my) php
aplications runs on simple hosting platform. There is only ftp access,
no comand line interface. So how can I properly install pluf without
shell?
And what are the bare bones of framework? In very small projects i
dont need the users, premissions etc. Do I have to install all the
pluf models to make it work properly?

Loic d'Anterroches

unread,
Aug 11, 2009, 3:37:38 PM8/11/09
to pluf-...@googlegroups.com
potworyk wrote:
> Hi,
> First, from that what I've read in documentation pluf seems to be
> great tool. Thank you developers!
> But there is a problem with usung it in production. Most of (my) php
> aplications runs on simple hosting platform. There is only ftp access,
> no comand line interface. So how can I properly install pluf without
> shell?

<?php
require 'Pluf.php';
Pluf::start(dirname(__FILE__).'/YourApp/conf/yourapp.php');
Pluf_Dispatcher::loadControllers(Pluf::f('yaurapp_views'));
$m = new Pluf_Migration(array('Pluf', 'YourApp'));
//$m->migrate(null); // migrate to the latest version.
$m->install; // or install for the first run.
print "Done.";

> And what are the bare bones of framework? In very small projects i
> dont need the users, premissions etc. Do I have to install all the
> pluf models to make it work properly?

Not at all, you can install nothing in the database.

loďc

potworyk

unread,
Aug 11, 2009, 4:08:11 PM8/11/09
to pluf-...@googlegroups.com
2009/8/11 Loic d'Anterroches:

>
> <?php
> require 'Pluf.php';
> Pluf::start(dirname(__FILE__).'/YourApp/conf/yourapp.php');
> Pluf_Dispatcher::loadControllers(Pluf::f('yaurapp_views'));
> $m = new Pluf_Migration(array('Pluf', 'YourApp'));
> //$m->migrate(null); // migrate to the latest version.
> $m->install; // or install for the first run.
> print "Done.";
>
But won't "$m = new Pluf_Migration(array('Pluf', 'YourApp'));" force
me to add Pluf model to my database? As far as I understand this will
excute Pluf_Migrations_Install_setup and add tables to database.

Loic d'Anterroches

unread,
Aug 12, 2009, 3:23:04 AM8/12/09
to pluf-...@googlegroups.com

Yes, you are right. I just figured out that the table to track the
installed applications is installed with Pluf. So, at the moment, you
need to install Pluf objects. I will need to refactor that.

Could you open a ticket so I can remember this issue?

thanks
loďc

Reply all
Reply to author
Forward
0 new messages