begins GAE, but unfortunately does not deal with Google and ZF, began also with the use of, and just slightly fart, so nothing.
then there are the VMWare Cloud Foundry and DotCloud, feeling different. VMWare's Micro Cloud Foundry is very appealing to me, but of Cloud Foundry Application relatively trouble, finally found a time to play with play, can not wait for the VMWare menfolk. Went ahead and took DotCloud surgery.
right, its space size limit:
For the Free plan, database services default to 10 MB of disk, and 10 MB of RAM.
With the Pro plan, database services have 10 GB of disk, and 300 MB of RAM
>> Install Command Line Interface
with Amazon EC2 as, DotCloud also provides a CLI, for the daily management (Oh, actually ran in the DotCloud itself on Amazon EC2).
but DotCloud CLI is Linux-based, there is no official support on Windows, Khan! ! Fortunately, there are busybodies kalman Speier come up with a Work Around, hit DotCloud comrades references is more intimate, Kalman king also made an installation package, without the configuration process, can be installed. Thank kalman Speier, otherwise I will go home this up.
https://github.com/speier/DotCloudWin
https://github.com/speier/DotCloudWin/downloads
>> common DotCloud Command
----------------------------------------------- ---------------
positional arguments:
{info, status, stats, run, logs, versions, url, setup, list, rollback, alias, ssh, push, de
stroy, create, restart, history}
setup setup your api key
history display the last commands you ran
create create an application
push push your application
list list your applications
; versions list the versions of your application
run ; run a remote command
logs ; read logs
alias ; bind a custom domain name to a service
destroy destroy your application
url display URL (s) of your application
info get information about your application or service < br /> status check the status
stats display the HTTP stats of your service
rollback ; rollback your service to the previous pushed version
ssh ; open an SSH session
restart ; restart your service
optional arguments:
-h, - help show this help message and exit
---------------------------------------- ---------------------
most critical is the create / push. The former is used to create a new application, which is used to update.
>> Create a new application
physical structure:
is noteworthy that, you need to add a root configuration file dotcloud.yml. because this thing is just a simple static HTML applications, it's easy:
dotcloud.yml:
--------------------------------------------
www:
type: static
--------------------------------------------
command line with the results after castration:
D: \ Piaoger \ dotcloud> dotcloud create todolist
Created application "todolist"
D: \ Piaoger \ dotcloud> dotcloud push todolist
Deployment finished. Your application is available at the following URLs
www: http://todolist-piaoger.dotcloud.com/
>> examination results
point to open http://todolist-piaoger.dotcloud.com/
Oh, this road has been through, I can finally start JavaScript/HTML3/CSS3 it.
没有评论:
发表评论