-
Notifications
You must be signed in to change notification settings - Fork 55
Useful Code Snippets
Add the following
<script>
$("#formID").ajaxForm(function(message){
toastr.info(message);
setTimeout(function(){
location.reload(true);
}, 1500);
});
</script>
Run the following
sudo apt-get install npm
cd ~/uber/sideboard/plugins/uber
sudo npm install -g bower
npm install grunt # Possibly unnecessary?
sudo npm install -g grunt-cli
sudo ln -s /usr/bin/nodejs /usr/bin/node
bower install
npm install grunt-bower-concat # Fails on Windows, see note below
grunt
When upgrading Reggie the Registration system you can use the following sh file
uber/puppet/apply_node.sh localhost
Once completed use sep reset_uber_db
to drop all the database tables
Are you getting an error stating that Port 8282 is not free on 0.0.0.0? SSH into your vagrant instance and use the command sudo supervisorctl stop all
Ubersystem uses multiple layers of caching for static content. In order for changes you make in your development deployment to show up in your browser, you may have to clear the cache at each layer.
As root/sudo:
find /var/cache/nginx/**/* -type f | xargs rm --
If you're using supervisor to run uber_daemon, as root/sudo:
supervisorctl restart uber_daemon
If you're running from the command line, first CTRL-C
to kill the server, then restart it with:
run_server
The final place where static assets might be cached is in your browser. If your changes still aren't showing up after clearing NGINX cache and clearing CherryPy cache, try clearing your browser cache.
DROP SCHEMA public CASCADE;
CREATE SCHEMA IF NOT EXISTS public AUTHORIZATION rams_db;
GRANT ALL ON SCHEMA public TO public;
GRANT ALL ON SCHEMA public TO rams_db;
Check the logs located at /var/log/uber-app.log