dotCloud first test

2011/05/23
By
% pip install -U dotcloud
% dotcloud create wall
Enter your api key (You can find it at http://www.dotcloud.com/account/settings):
Created "wall"
% dotcloud deploy -t python wall.ffstream
Created "wall.ffstream".
% dotcloud push wall.ffstream .
# upload . ssh://dotcloud@uploader.dotcloud.com:1060/wall.ffstream
# git
Warning: Permanently added ‘[uploader.dotcloud.com]:1060,[174.129.15.77]:1060′ (RSA) to the list of known hosts.
Counting objects: 17, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (14/14), done.
Writing objects: 100% (17/17), 4.75 KiB, done.
Total 17 (delta 1), reused 0 (delta 0)
To ssh://dotcloud@uploader.dotcloud.com:1060/wall.ffstream
 * [new branch]      master -> master
Scheduling build
Fetching logs…
Warning: Permanently added ‘[ffstream.wall.dotcloud.com]:yyyy,[xxx.xxx.xxx.xxx]:yyyy’ (RSA) to the list of known hosts.
Build started…
.gitignore
__init__.py
forms.py
friendship.html
manage.py
plurk.py
settings.py
urls.py
views.py
wsgi.py
Fetched code revision c1802d6
Reloading nginx configuration: nginx.
uwsgi: stopped
uwsgi: started
Connection to ffstream.wall.dotcloud.com closed.

Oops, I forget to specify the project is a django project.

% echo django > requirements.txt
% dotcloud push wall.ffstream
….
Downloading Django-1.3.tar.gz (6.5Mb): 6.5Mb downloaded
  Storing download in cache at /home/dotcloud/.pip-cache/http%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2FD%2FDjango%2FDjango-1.3.tar.gz
  Running setup.py egg_info for package django
Installing collected packages: django
  Running setup.py install for django
    changing mode of build/scripts-2.6/django-admin.py from 644 to 755
    changing mode of /home/dotcloud/env/bin/django-admin.py to 755
Successfully installed django
Cleaning up…
Reloading nginx configuration: nginx.
uwsgi: stopped
uwsgi: started
Connection to ffstream.wall.dotcloud.com closed.

Okay. Rocks :)

Tags: ,

發表迴響

您的電子郵件位址並不會被公開。 必要欄位標記為 *

*


*