Version: 1.9.8
Platform: x86_64
First, install or update to the latest system software.
sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
| #!/bin/bash | |
| # Run as: ./deploy.sh /dir/name | |
| # TODO: | |
| # - add a starting directory | |
| # - add a backup script to run before updating, you know just in case... | |
| # - add error checking | |
| # - add a safety token/password to prevent unauthorized calls | |
| # - Employ git hook |
| license: mit |
| # install phantomjs | |
| cd /usr/local/share | |
| sudo wget https://phantomjs.googlecode.com/files/phantomjs-1.9.2-linux-x86_64.tar.bz2 | |
| sudo tar xjf phantomjs-1.9.2-linux-x86_64.tar.bz2 | |
| sudo ln -s /usr/local/share/phantomjs-1.9.2-linux-x86_64/bin/phantomjs /usr/local/share/phantomjs; sudo ln -s /usr/local/share/phantomjs-1.9.2-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs; sudo ln -s /usr/local/share/phantomjs-1.9.2-linux-x86_64/bin/phantomjs /usr/bin/phantomjs | |
| sudo apt-get install fontconfig | |
| # install casperjs | |
| cd /var/www/ | |
| git clone git://github.com/n1k0/casperjs.git |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Leaflet</title> | |
| <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.3.1/leaflet.css" /> | |
| <script src="http://cdn.leafletjs.com/leaflet-0.3.1/leaflet.js"></script> | |
| <script src="http://maps.google.com/maps/api/js?v=3.2&sensor=false"></script> | |
| <script src="http://matchingnotes.com/javascripts/leaflet-google.js"></script> | |
| </head> | |
| <body> |