Add a folder to your server to store your repositories. I usually call it hub
mkdir ~/hub| https://ariejan.net/2010/06/07/uploading-files-with-curl/ |
| # Help taken from: http://aaronlasseigne.com/2012/01/17/explaining-include-and-extend/ | |
| module X | |
| def hello | |
| puts "Hello from module X" | |
| end | |
| end | |
| module Y | |
| def bye |
This is a step by step guide on how I setup a Grape API on Rack.
Our API will have a few dependencies:
| To completely disable minification & uglification: | |
| You must edit useminPrepare task and overwrite grunt-usemin task options like so: | |
| useminPrepare: { | |
| options: { | |
| dest: '<%= config.dist %>', | |
| flow: { | |
| steps: { | |
| js: ['concat'], |
| PROJECT=$1 | |
| EXTENSION=$2 | |
| mkdir ~/web | |
| mkdir ~/hub | |
| mkdir /home/ubuntu/web/www.${PROJECT}.${EXTENSION}/ | |
| mkdir /home/ubuntu/web/www.${PROJECT}.${EXTENSION}/app/ | |
| mkdir /home/ubuntu/web/www.${PROJECT}.${EXTENSION}/logs/ | |
| mkdir /home/ubuntu/web/www.${PROJECT}.${EXTENSION}/static/ |