% cd ~/proj/heroku_playground
% git clone git@heroku.com:otiai10firstapp.git
Cloning into 'otiai10firstapp'...
Initializing repository, done.
warning: You appear to have cloned an empty repository.
Checking connectivity... done.
% cd otiai10firstapp
% git remote -v
origin git@heroku.com:otiai10firstapp.git (fetch)
origin git@heroku.com:otiai10firstapp.git (push)
% vi index.php
%
%
% git add .
% st
On branch master
Initial commit
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: index.php
% git commit
[master (root-commit) bafaa58] Add index.php
1 file changed, 3 insertions(+)
create mode 100644 index.php
% git remote -v
origin git@heroku.com:otiai10firstapp.git (fetch)
origin git@heroku.com:otiai10firstapp.git (push)
% heroku create
Creating morning-waters-6560... done, stack is cedar
http://morning-waters-6560.herokuapp.com/ | git@heroku.com:morning-waters-6560.git
Git remote heroku added
% git remote -v
heroku git@heroku.com:morning-waters-6560.git (fetch)
heroku git@heroku.com:morning-waters-6560.git (push)
origin git@heroku.com:otiai10firstapp.git (fetch)
origin git@heroku.com:otiai10firstapp.git (push)
% heroku open
! Multiple apps in folder and no app specified.
! Specify app with --app APP.
% git push heroku master
Warning: Permanently added the RSA host key for IP address '50.19.85.132' to the list of known hosts.
Initializing repository, done.
Counting objects: 3, done.
Writing objects: 100% (3/3), 228 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
-----> PHP app detected
! WARNING: No composer.json found.
Using index.php to declare PHP applications is considered legacy
functionality and may lead to unexpected behavior.
See https://devcenter.heroku.com/categories/php
-----> Setting up runtime environment...
- PHP 5.5.14
- Apache 2.4.9
- Nginx 1.4.6
-----> Installing PHP extensions:
- opcache (automatic; bundled, using 'ext-opcache.ini')
-----> Installing dependencies...
Composer version 745dcbce3317f7119575c39cef2cb601f9c5ffcf 2014-06-29 16:49:45
Loading composer repositories with package information
Installing dependencies
Nothing to install or update
Generating optimized autoload files
-----> Building runtime environment...
NOTICE: No Procfile, defaulting to 'web: vendor/bin/heroku-php-apache2'
-----> Discovering process types
Procfile declares types -> web
-----> Compressing... done, 62.7MB
-----> Launching... done, v3
http://morning-waters-6560.herokuapp.com/ deployed to Heroku
To git@heroku.com:morning-waters-6560.git
* [new branch] master -> master
%
Created
July 1, 2014 09:55
-
-
Save otiai10/843eed4fdbab992d2249 to your computer and use it in GitHub Desktop.
heroku first app
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment