Go to file
pixeldesu 09b30506fd add deletion message to index 2015-03-27 13:25:50 +01:00
.capistrano added Capistrano 2014-12-21 22:12:59 +01:00
app add deletion message to index 2015-03-27 13:25:50 +01:00
bin added Capistrano 2014-12-21 22:12:59 +01:00
config Merge remote-tracking branch 'remotes/origin/texts' into develop 2015-02-16 18:59:59 +01:00
db forgot to add migration and everything 2015-01-25 20:30:53 +01:00
lib added jquery.guillotine 2014-12-29 15:47:10 +01:00
log first commit 2014-08-01 11:23:47 +02:00
public it would be nice if you'd actually include this icon 2015-01-10 13:58:51 +01:00
spec update test 2015-01-31 16:26:22 +01:00
tmp added a few directories in ./tmp 2014-12-13 16:42:00 +01:00
vendor/assets first commit 2014-08-01 11:23:47 +02:00
.gitignore Revert "Le Funny Emoji Meme Face x--DD" 2015-01-08 22:34:50 +01:00
.rspec removed a (rrer)rspec option 2014-12-05 06:39:33 +01:00
Capfile added Capistrano 2014-12-21 22:12:59 +01:00
Gemfile update questiongenerator 2015-02-28 17:21:11 +01:00
Gemfile.lock update questiongenerator 2015-02-28 17:21:11 +01:00
Procfile updated procfile 2014-12-13 16:44:33 +01:00
README.md updated README 2015-01-06 15:21:32 +01:00
Rakefile added blogger badge 2015-01-25 20:30:09 +01:00
TODO update TODO 2015-01-25 19:21:44 +01:00
config.ru first commit 2014-08-01 11:23:47 +02:00

README.md

justask build status

Requirements

  • UNIX-like system (Linux, *BSD, ...)
  • Ruby 2.0.0+
  • Bundler
  • PostgreSQL
  • Redis

Installation (production)

Database

PostgreSQL

$ sudo -u postgres psql -d template1
template1=# CREATE USER justask CREATEDB;
template1=# CREATE DATABASE justask_production OWNER justask;
template1=# \q

Try connecting to the database:

$ psql -U justask -d justask_production

justask

Clone the Source

$ git clone https://git.rrerr.net/nilsding/justask.git justask

Configure It

# Change into the justask directory
$ cd justask

# Copy the example config
$ cp config/justask.yml.example config/justask.yml

# Edit the configuration file
$ vi config/justask.yml

Database Configuration

$ cp config/database.yml.postgres config/database.yml
$ vi config/database.yml

# Make database.yml readable only for you
chmod o-rwx config/database.yml

Install Gems

# Deployment:
$ bundle install --deployment --without development test mysql

# Development:
$ bundle install --without production mysql

Initialize Database

$ bundle exec rake db:migrate RAILS_ENV=production

Compile Assets

$ bundle exec rake assets:precompile RAILS_ENV=production

Run the server

# Production mode:
$ foreman start

# Development mode:
$ bundle exec rails server

Create an account on your justask installation.

To make yourself an admin, just execute:

$ bundle exec rake 'justask:admin[your_username]' RAILS_ENV=production

If you want to remove admin status from a certain user, you can do this:

$ bundle exec rake 'justask:deadmin[get_rekt]' RAILS_ENV=production

Add/remove moderators:

$ bundle exec rake 'justask:mod[someone_else]' RAILS_ENV=production
$ bundle exec rake 'justask:demod[someone_else]' RAILS_ENV=production

Add/remove supporters:

$ bundle exec rake 'justask:sup[someone_else]' RAILS_ENV=production
$ bundle exec rake 'justask:desup[someone_else]' RAILS_ENV=production