The Wiki will be unavailable from 7am until 9am on Tuesday, 28 November, 2017, due to server and database patching.
Skip to end of metadata
Go to start of metadata

It's a Padrino application with a MySQL database.

The code is in https://github.bath.ac.uk/digital/url-shortener

The application lives at http://go.bath.ac.uk. Further deployment details are in the Application infrastructure details table.

Development

You need to have MySQL installed before you can run bundle install, as the do_mysql gem will fail installation without it.

  • CentOS/Vagrant: sudo yum install mysql-devel
  • OS X (requires Homebrew): brew install mysql

 

Run it for local development

Start padrino on port 3065, bind to all IP addresses

The development environment expects a MySQL database. See /config/database.rb for details.

Deployment

There are build and deployment plans in Bamboo for staging and production, with triggers set up on the Github repo.

Password change issue in Padrino

There is an issue in Padrino which prevents the password of an admin user being changed even though the message generated says it is successful.

There is a workaround by changing one of the other fields at the same time as the password fields. This forces the update.

The issue has been logged at https://github.com/padrino/padrino-framework/issues/749

  • No labels