Skip to content

Instantly share code, notes, and snippets.

@evrial
Forked from rhamdeew/README
Last active May 3, 2016 17:08
Show Gist options
  • Select an option

  • Save evrial/831bc5ec151ea06c4d16ed092dc015a3 to your computer and use it in GitHub Desktop.

Select an option

Save evrial/831bc5ec151ea06c4d16ed092dc015a3 to your computer and use it in GitHub Desktop.

Revisions

  1. evrial revised this gist May 3, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    1. sudo docker pull rhamdeew/lamp
    2. sudo docker run -v /your_empty_project_path/:/var/www/srv/ -p 80:80 -t -i rhamdeew/lamp /bin/bash
    3. in container: cp -R /var/www/example /var/www/srv
    3. in container: cp -R /var/www/example/* /var/www/srv
    4. in container: cd /var/www/srv/
    5. in container: ./start.sh
    6. open http://localhost/1.php
  2. @rhamdeew rhamdeew revised this gist Aug 10, 2014. 1 changed file with 8 additions and 3 deletions.
    11 changes: 8 additions & 3 deletions README
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,10 @@
    1. sudo docker pull rhamdeew/lamp
    2. sudo docker run -v /your_empty_project_path/:/var/www/srv/ -p 80:80 -t -i rhamdeew/lamp /bin/bash
    3. in container: cp -R /var/www/example /var/www/srv
    4. in container: cd /var/www/srv/
    5. in container: ./start.sh
    6. open http://localhost/1.php

    Your project structure

    projectname/
    @@ -6,6 +13,4 @@ projectname/
    /db/db.sql ->database dump
    /db/db.txt ->database settings

    Example found in /var/www/example
    Just cp -R /var/www/example /var/www/srv

    Example found in /var/www/example
  3. @rhamdeew rhamdeew created this gist Aug 10, 2014.
    11 changes: 11 additions & 0 deletions README
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    Your project structure

    projectname/
    /www -> php files
    /etc/php.ini -> custom php.ini
    /db/db.sql ->database dump
    /db/db.txt ->database settings

    Example found in /var/www/example
    Just cp -R /var/www/example /var/www/srv