Skip to content

hackershare/hackershare

Repository files navigation

Hackershare

Social bookmarks website for hackers. Alternative to delicious, hackernews, pocket. Hackershare is the open source software which powers hackershare.dev

There is also a project introduction article for your reference: hackershare: Social bookmarking reinvented!

CI

Dependencies

Setup local

Setup by Docker

  1. Make a copy of the example environment file and modify as required [optional].
cp .env .env.local
  1. Build the images.
docker-compose build
  1. After building the image or after destroying the stack you would have to reset the database using the following command.
docker-compose run --rm rails bundle exec rails db:create
docker-compose run --rm rails bundle exec rails db:migrate
docker-compose run --rm rails bundle exec rails db:seed_fu

or 

docker-compose run --rm rails bundle exec rails db:reset
docker-compose run --rm rails bundle exec rails db:seed_fu
  1. Run app
docker-compose up
  1. stop app
docker-compose down

Deployment

  • Nginx conf sync: bundle exec cap production puma:nginx_config
  • Deploy: bundle exec cap production deploy

Chrome extension

Refresh sitemap

  • bundle exec rake sitemap:refresh