-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathstep6.txt
More file actions
61 lines (45 loc) · 1.99 KB
/
step6.txt
File metadata and controls
61 lines (45 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Find an application you’d like to deploy, or clone `an example app`_.
Change into the application directory and use ``deis create --formation=dev``
to create a new application attached to the dev formation.
.. code-block:: console
$ deis create --formation=dev
Creating application... done, created peachy-waxworks
Git remote deis added
To deploy the application, use ``git push deis master``.
Deis will automatically deploy Docker containers and configure Nginx proxies
to route requests to your application.
.. code-block:: console
$ git push deis master
Counting objects: 146, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (122/122), done.
Writing objects: 100% (146/146), 21.54 KiB, done.
Total 146 (delta 84), reused 47 (delta 22)
Node.js app detected
-----> Resolving engine versions
Using Node.js version: 0.10.17
Using npm version: 1.2.30
...
-----> Compiled slug size: 4.7 MB
Launching... done, v2
-----> peachy-waxworks deployed to Deis
http://peachy-waxworks.example.com ...
$ curl -s http://peachy-waxworks.example.com
Powered by Deis!
Once your application is deployed, use ``deis scale web=4`` to
scale up Docker web containers to 4, for example. You can also use
``deis logs`` to view aggregated application logs, or ``deis run`` to run admin
commands inside your application.
.. code-block:: console
$ deis scale web=4
Scaling containers... but first, coffee!
done in 12s
=== peachy-waxworks Containers
--- web: `node server.js`
web.1 up 2013-09-23T19:02:30.745Z (dev-runtime-1)
web.2 up 2013-09-23T19:36:48.741Z (dev-runtime-1)
web.3 up 2013-09-23T19:36:48.758Z (dev-runtime-1)
web.4 up 2013-09-23T19:36:48.771Z (dev-runtime-1)
To learn more, use ``deis help`` or browse the rest of `the documentation`_.
.. _`an example app`: https://github.com/opdemand/example-nodejs-express
.. _`the documentation`: http://docs.deis.io/