Hello, I'm not quite sure how much interest there will be for this, but I have been wanting to develop Amber sites on some of my economy-class shared hosting providers. However, they don't happen to permit much in the way of WebDAV, Node.js, and HTTP PUT. So I had the need to modify Browser>>commitPackage to upload my commits over HTTP POST to a server-side PHP script. I chose to use the FormData method which is available in a few of the newer web browsers. If this is something you might be interested in, I explain it a little further here: http://chrisbratlien.com/amber-smalltalk-on-shared-hosting/ Feel free to use it and suggest improvements. Thanks, Chris
|
Awesome, thanks for sharing! :)
2011/10/21 chrisbratlien <[hidden email]>
Bernat Romagosa. |
Yes, thank you as well for sharing this.
http://chrisbratlien.com/amber-smalltalk-on-shared-hosting/ A question --- what is the commitAPIKey "make this your own" ^ 'Sometimes I Doubt Your Commitment to Sparkle Motion' --Hannes On 10/21/11, Bernat Romagosa <[hidden email]> wrote: > Awesome, thanks for sharing! :) > > 2011/10/21 chrisbratlien <[hidden email]> > >> Hello, >> >> I'm not quite sure how much interest there will be for this, but I have >> been wanting to develop Amber sites on some of my economy-class shared >> hosting providers. However, they don't happen to permit much in the way of >> WebDAV, Node.js, and HTTP PUT. >> >> So I had the need to modify Browser>>commitPackage to upload my commits >> over HTTP POST to a server-side PHP script. I chose to use the FormData >> method which is available in a few of the newer web browsers. >> >> If this is something you might be interested in, I explain it a little >> further here: >> >> http://chrisbratlien.com/amber-smalltalk-on-shared-hosting/ >> >> Feel free to use it and suggest improvements. >> >> Thanks, >> Chris >> > > > > -- > Bernat Romagosa. > |
Hi Hannes,
Browser class>>commitAPIKey was put into my example for security purposes. The string returned must match the $correct_apikey string in the example commit.php in order to commit. I used a cheesy quote from the movie Donnie Darko as my example api key. I suppose I could have instead used an Apache .htaccess file. While I mentioned that my hosting provider restricts PUT and WebDAV, I believe they would permit me to configure something like this in .htaccess: <Limit POST> require valid-user </Limit> In that case, commitAPIKey would be unnecessary. Thanks, Chris On Oct 21, 12:18 pm, "H. Hirzel" <[hidden email]> wrote: > Yes, thank you as well for sharing this. > > http://chrisbratlien.com/amber-smalltalk-on-shared-hosting/ > > A question --- what is the > > commitAPIKey > "make this your own" > ^ 'Sometimes I Doubt Your Commitment to Sparkle Motion' > > --Hannes > > On 10/21/11, Bernat Romagosa <[hidden email]> wrote: > > > > > > > > > Awesome, thanks for sharing! :) > > > 2011/10/21 chrisbratlien <[hidden email]> > > >> Hello, > > >> I'm not quite sure how much interest there will be for this, but I have > >> been wanting to develop Amber sites on some of my economy-class shared > >> hosting providers. However, they don't happen to permit much in the way of > >> WebDAV, Node.js, and HTTP PUT. > > >> So I had the need to modify Browser>>commitPackage to upload my commits > >> over HTTP POST to a server-side PHP script. I chose to use the FormData > >> method which is available in a few of the newer web browsers. > > >> If this is something you might be interested in, I explain it a little > >> further here: > > >>http://chrisbratlien.com/amber-smalltalk-on-shared-hosting/ > > >> Feel free to use it and suggest improvements. > > >> Thanks, > >> Chris > > > -- > > Bernat Romagosa. |
Free forum by Nabble | Edit this page |