Month: January 2012

  • Connect to Database – PostGreSQL

    This is just a quick post on how to connect to particular database via the console in PostGreSQL. First, make sure you’ve logged in – just swap my_app for your role name: chris@chris-VirtualBox:~/site$ psql postgres my_app Password for user site: psql (8.4.10) Type “help” for help. Finally, all you have to do to connect is…

  • Stop an Application – Heroku

    Just a quick post on how to stop an app on Heroku: root@chris-VirtualBox:~/site# heroku maintenance:on Maintenance mode enabled. This will display a static page to all visitors but still allows for migrations etc: To re-enable the app simply use the following: root@chris-VirtualBox:~/site# heroku maintenance:off Maintenance mode disabled.

  • Heroku Upload – Permission Denied

    I ran into a bit of trouble uploading an app to heroku for the first time, I was unable to authenticate. root@chris-VirtualBox:~/site# git push heroku master Permission denied (publickey). fatal: The remote end hung up unexpectedly This turned out to be an issue with my public key, in order to fix it simply create a…

  • PostgreSQL Installation Error – Ruby

    I ran into a bit of problem moving an app to a test Heroku host – I needed to install PostgreSQL. I added the following to my Gemfile: #Gemfile #gem ‘sqlite3’ gem ‘pg’ I then tried to run bundle install: root@chris-VirtualBox:~/site# bundle install However I received the following error: root@chris-VirtualBox:~/site# bundle install Fetching source index…

  • Unable to edit files uploaded to document library where url length is more than 260 characters – SharePoint

    Just a quick problem I came across in SharePoint today when trying to edit a file: Unable to edit files uploaded to document library where url length is more than 260 characters The folder structure being used was fairly complex, unfortunately this meant that a filename only had to be a few characters long to…

Create a website or blog at WordPress.com