Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

deploy a static website to heroku

#create an index.php file to simulate a php web
$ echo '<?php include_once("index.html"); ?>' > index.php

#create composer.json
$ echo '{}' > composer.json$ 

#initialize git repo
$ git init 
$ heroku login
$ heroku git:remote -a your-app-name-123
$ git add .
$ git commit -a -m "new commit"
$ git push heroku master
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #deploy #static #website #heroku
ADD COMMENT
Topic
Name
1+4 =