Skip to content

Commit 133f40b

Browse files
committed
Initial commit
0 parents  commit 133f40b

File tree

181 files changed

+2768
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

181 files changed

+2768
-0
lines changed

.gitignore

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
2+
#
3+
# If you find yourself ignoring temporary files generated by your text editor
4+
# or operating system, you probably want to add a global ignore instead:
5+
# git config --global core.excludesfile '~/.gitignore_global'
6+
7+
# Ignore bundler config.
8+
/.bundle
9+
10+
# Ignore all logfiles and tempfiles.
11+
/log/*
12+
/tmp/*
13+
!/log/.keep
14+
!/tmp/.keep
15+
16+
# Ignore Byebug command history file.
17+
.byebug_history
18+
19+
# Ignore public uploads
20+
public/uploads

.ruby-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.4.1

Dockerfile

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
FROM ruby:2.4.1
2+
3+
4+
ARG rails_env=production
5+
ARG secret_key_base=
6+
7+
ENV APP_HOME /code
8+
ENV RAILS_ENV $rails_env
9+
ENV SECRET_KEY_BASE $secret_key_base
10+
11+
RUN apt-get update
12+
13+
RUN curl -sL https://deb.nodesource.com/setup_5.x | bash && \
14+
apt-get install -y nodejs
15+
16+
ADD Gemfile /tmp/Gemfile
17+
ADD Gemfile.lock /tmp/Gemfile.lock
18+
RUN cd /tmp && bundle install
19+
20+
RUN mkdir -p $APP_HOME
21+
WORKDIR $APP_HOME
22+
ADD . $APP_HOME
23+
24+
RUN bundle exec rake DATABASE_URL=postgresql://user:[email protected]/dbname assets:precompile
25+
26+
CMD ["bundle", "exec", "rails", "s", "-b0.0.0.0"]

Gemfile

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
source "https://rubygems.org"
2+
3+
ruby '2.4.1'
4+
5+
gem "decidim", git: 'https://github.com/AjuntamentdeBarcelona/decidim.git'
6+
7+
gem 'puma', '~> 3.0'
8+
gem 'uglifier', '>= 1.3.0'
9+
gem 'faker', '~> 1.7.3'
10+
11+
group :development, :test do
12+
gem 'byebug', platform: :mri
13+
gem "decidim-dev", git: 'https://github.com/AjuntamentdeBarcelona/decidim.git'
14+
end
15+
16+
group :development do
17+
gem 'web-console'
18+
gem 'listen', '~> 3.1.0'
19+
gem 'spring'
20+
gem 'spring-watcher-listen', '~> 2.0.0'
21+
end
22+
23+
group :production do
24+
gem 'fog-aws'
25+
gem 'sendgrid-ruby'
26+
gem "passenger"
27+
end
28+
29+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
30+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

0 commit comments

Comments
 (0)