deploying PHP app on Heroku.pptx

Embed Size (px)

Citation preview

  • 8/17/2019 deploying PHP app on Heroku.pptx

    1/23

    Name: Shayan Ali

    Seat#: EP1349097Class:BSCS 4th Year Sec ACourse: nternet A!!lication

    "eelo!ment

    $o!ic: "e!loyin% my a!! on &ero'u

    Su(mitte) $o:

    Sir *ain A((as

  • 8/17/2019 deploying PHP app on Heroku.pptx

    2/23

    "e!loyin% P&P +y A!! ,n&ero'u

    -e.uirementa /ree &ero'u account

    A ithu( account

    it

    A clou)9 "eelo!ment setu!

    P&P installe) locally2

    Com!oser installe)2

    reemys.lhostin% account

    https://signup.heroku.com/signup/dchttp://php.net/https://getcomposer.org/doc/00-intro.mdhttps://getcomposer.org/doc/00-intro.mdhttp://php.net/https://signup.heroku.com/signup/dc

  • 8/17/2019 deploying PHP app on Heroku.pptx

    3/23

    ntro)uction &ero'u $oolBelt:

     &ero'u tool (elt !roi)es Comman) ine nter/ace 5C6

    use) /or mana%in% !ushin% an) scalin% your a!!lications

    a))in% hero'u a))ons

    htt!s:88tool(elt2hero'u2com8

    in': htt!s:88si%nu!2hero'u2com8lo%in

    Clou) 9 "E Clou)9 "E is an o!en source "E 5inte%rate)

    )eelo!ment enironment6 !lat/orm

    su!!orts arious !ro%rammin% lan%ua%es li'e PythonP&P Perl aaScri!t o an) -u(y

    https://signup.heroku.com/loginhttps://signup.heroku.com/login

  • 8/17/2019 deploying PHP app on Heroku.pptx

    4/23

    Clou) 9 "E

  • 8/17/2019 deploying PHP app on Heroku.pptx

    5/23

    ithu(

    Create ithu( account

    htt!s:88%ithu(2com8

      "o;nloa) %it on your system Belo;the lin' 

    htt!s:88%itscm2com8)o;nloa)s$erminal Comman):

    %it ersion

  • 8/17/2019 deploying PHP app on Heroku.pptx

    6/23

    Con

  • 8/17/2019 deploying PHP app on Heroku.pptx

    7/23

    Creatin% -e!ository inithu(o%in to ithu( accountClic' on ne; re!ository

    Name it an) create re!ository

  • 8/17/2019 deploying PHP app on Heroku.pptx

    8/23

    Creatin% SS& EY 

    cat 82ssh8i)rsa2!u(

     

  • 8/17/2019 deploying PHP app on Heroku.pptx

    9/23

    Cont.

    $E-+NA C,++AN"

    ssh >t %itD%ithu(2com

    Are you sure you ;ant to continueconnectin% Yes8No Ans;er: Yes

    o to Sli)e F an) eGecute the Comman)s

    $his ;ill !ush your c9 clou) enironmentco)e to %ithu(

    mailto:[email protected]:[email protected]

  • 8/17/2019 deploying PHP app on Heroku.pptx

    10/23

    Creatin% ne;

  • 8/17/2019 deploying PHP app on Heroku.pptx

    11/23

    Upload PHP App Files

    https://github.com/shayan18/frstapp/tree/master/star!eyrie!"#$%&

    "o;nloa) all the P&P A!!

  • 8/17/2019 deploying PHP app on Heroku.pptx

    12/23

    Cont.

  • 8/17/2019 deploying PHP app on Heroku.pptx

    13/23

    "EP,YN P&P APP N,&E-,I

    $E-+NA C,++AN"

    hero'u ersion

    hero'u lo%in

  • 8/17/2019 deploying PHP app on Heroku.pptx

    14/23

    Cont. $E-+NA C,++AN"

    hero'u 'eys:a))

  • 8/17/2019 deploying PHP app on Heroku.pptx

    15/23

    Creatin% A!! in &ero'u

    $E-+NA C,++AN"

    hero'u create

  • 8/17/2019 deploying PHP app on Heroku.pptx

    16/23

    +a%ic Comman)%it !ush hero'u master

  • 8/17/2019 deploying PHP app on Heroku.pptx

    17/23

    Herou open

  • 8/17/2019 deploying PHP app on Heroku.pptx

    18/23

    Connection your SJ)ata(ase to &ero'u

    o to htt!:88;;;2/reemys.lhostin%2net8 Create account

    Create )ata(ase

    o to my!h!a)min

    n your email a))ress there ;ill in/ormation a(out

    &ost"ata(ase name"ata(ase user"ata(ase !ass;or)Port num(er

    http://www.freemysqlhosting.net/http://www.freemysqlhosting.net/

  • 8/17/2019 deploying PHP app on Heroku.pptx

    19/23

    Cont.

    o to https://dri'e.google.com/fle/d/()*+,-$eHn+0l+%)2c34ieF/'ie56usp7sharing

    "o;nloa) the inentory2s.l

  • 8/17/2019 deploying PHP app on Heroku.pptx

    20/23

  • 8/17/2019 deploying PHP app on Heroku.pptx

    21/23

    Cont.

  • 8/17/2019 deploying PHP app on Heroku.pptx

    22/23

    Cont.

    I!)ate the in/ormation o/ your )(name )(host)(username an) )(user!ass;or)

    -un all the comman)s a)) commit !ush u!)ates

  • 8/17/2019 deploying PHP app on Heroku.pptx

    23/23

    Any ueries6

    $han's