Skip to content

haithembelhaj/lberg-map

Repository files navigation

Build Status

Local Development Environment

Some Dependencies you need:

clone the repository

get the common ruby version e.g. 2.1 at the moment (installation via RVM recommended or according to this post: ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you// )

get PostgreSQL 9.3 or a later version

Inside the project folder run:

sudo gem install bundler

bundle install

createdb lberg-map_development

bin/rake db:migrate RAILS_ENV=development

Start the App with

rails s

You can access the site in the browser with 127.0.0.1:3000

or

localhost:3000

Docker Development

You could also develop the app using docker. All you need to do is run those commands in the current directory

  • docker-compose build
  • docker-compose up
  • docker-compose run lberg-map-web rake db:create
  • docker-compose run lberg-map-web rake db:migrate

Gotchas:

  • On a mac you have add the docker-maschine ip to you /etc/hosts to access the app easily
lberg.dev DOCKER-MASCHINE-IP
  • if you restart the lberg-map-web container make sure to delete the file tmp/pids/server.pid

Dev admin access

You can enter the admin area with the credentials: User: admin pass: secret

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published