This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inside the vm | |
sudo yum -y install cachefilesd | |
sudo service cachefilesd start | |
git config --global core.preloadindex true | |
enable the following mount options: | |
config.vm.synced_folder './csc-amera-manager/', '/home/vagrant/csc-amera-manager', enabled: true, type: :nfs, mount_options: ['rw', 'vers=3', 'tcp', 'fsc' ,'actimeo=2'] | |
config.vm.synced_folder './csc-amera-auth/', '/home/vagrant/csc-amera-auth', enabled: true, type: :nfs, mount_options: ['rw', 'vers=3', 'tcp', 'fsc' ,'actimeo=2'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/ .container | |
/ .search-panel | |
/ = form_tag '', method: :get do | |
/ .row.form-group | |
/ .col-xs-4 | |
/ = text_field_tag 'query', params[:query], {class: 'form-control', placeholder: "Enter search terms ..."} | |
/ .row.form-group | |
/ .col-xs-2 | |
/ .input-group | |
/ = text_field_tag 'distance', params[:distance], {class: 'form-control', placeholder: "Distance ..."} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Gruntfile.js | |
* Grunt workflow for building AngularJS/Ionic applications. | |
* Assumption: | |
* - Gruntfile.js is placed under project root directory | |
* - there are 4 directories called "www", "coffee", "scss", and "haml" under the project's root directory | |
* - all the necessary npm packages included with grunt.loadNpmTasks() are installed already | |
* - %script{:src => '//localhost:35729/livereload.js'} in included at the bottom of your index.haml | |
*/ | |
'use strict'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sinatra' | |
set :public_dir, File.dirname(__FILE__) + '/www' | |
get '/*' do | |
send_file File.expand_path('index.html', settings.public_dir) | |
end |