Commit Graph

31 Commits

Author SHA1 Message Date
Javi Martín
2f312bf474 Use a different machine learning folder per tenant
We're using the "tenants" subfolder for consistency with the folder
structure we use in ActiveStorage and because some CONSUL installations
might have folders inside the `data` folder which might conflict with
the folders created by tenants.

Note that the Python scripts have a lot of duplication, meaning we need
to change all of them. I'm not refactoring them because I'm not familiar
enough with these scripts (or with Python, for that matter).

Also note that the scripts folder is still shared by all tenants,
meaning it isn't possible to have different scripts for different
tenants. I'm not sure how this situation should be handled; again, I'm
not familiar enough with this feature.
2022-11-11 01:40:04 +01:00
Javi Martín
5100884110 Generate one sitemap per tenant
Note that the `sitemap:refresh` task only pings search engines at the
end, so it only does so for the `Sitemap.default_host` defined last. So
we're using the `sitemap:refresh:no_ping` task instead and pinging
search engines after creating each sitemap.

Note we're pinging search engines in staging and preproduction
environments. I'm leaving it that way because that's what we've done
until now, but I wonder whether we should only do so on production.

Since we're creating a new method to get the current url_options, we're
also using it in the dev_seeds.
2022-11-09 18:19:20 +01:00
Javi Martín
f487e9f0d0 Reorganize gitignore file
So it's easier to follow.
2022-04-06 14:19:55 +02:00
Javi Martín
fc70ba3db5 Define paths in gitignore in a consistent way
We used a slash as a prefix in some cases but not in other cases. Now
we're defining files and folders following the gitignore rules: files
starting with a slash are only ignored in the root folder, while files
not starting with it are ignored everywhere.

IMHO it makes sense to ignore all folders named `tmp`, `.bundle`, `log`,
`.DS_Store` or `.ruby-gemset` everywhere in the source code and not only
in the root folder.

We're also adding a trailing slash to all folders for consistency.
2022-04-06 14:19:55 +02:00
Javi Martín
f5152179e1 Remove references to IDEA files in gitignore
We can't cover the files for every editor out there, so we're removing
it in the name of neutrality. Developers using this editor to work with
CONSUL can add the `.idea` to their global gitignore configuration (on
GNU/Linux systems, for instance, the `~/.config/git/ignore` file).
2022-04-06 14:19:55 +02:00
Javi Martín
e98dc0923c Remove reference to beta testers file in gitignore
This feature was removed in commit 1e0ac137bb.
2022-04-06 14:19:55 +02:00
Javi Martín
1a880815dc Remove references to SQLite files in gitignore
We don't use SQLite and we don't support it, so these files shouldn't
exist in the first place.
2022-04-06 14:19:55 +02:00
Javi Martín
73a0a21001 Configure Active Storage 2021-09-24 13:39:15 +02:00
Machine Learning
4d27bbebad Add experimental machine learning 2021-08-16 16:31:04 +02:00
Javi Martín
1627d87890 Avoid adding compiled assets to version control
We've seen a few CONSUL repositories where compiled assets have
accidentally been added to version control. It's pretty easy if you use
something like `git add .` before creating a commit and you've compiled
the assets locally.

Having these assets in version control doesn't help and in certain
environments it might even have side effects. For instance, we might try
updating the source code of a Sass file and might wonder why these
changes are ignored in some test or development environments.
2021-06-17 01:44:24 +02:00
German Galia
85722eb7c4 Rename admin/debates and admin/comments to hidden 2019-06-02 19:12:26 +02:00
voodoorai2000
76f3fd38ad Ignore Intellij IDE project settings
Some developers use the Intellij IDE to program in Rails.

Adding the /.idea folder where project settings are stored, so that these files do not have to be skipped manually when sending a PR upstream.
2019-04-06 11:58:00 +02:00
behraaang
aecfc319cb gitignore deleted mistakenly 2018-11-15 23:39:42 +03:30
Behrang Mirzamani
c7e94bb779 Delete .gitignore 2018-11-15 22:51:58 +03:30
behraaang
3278b35729 partial added, render an investment 2018-11-10 23:08:11 +03:30
Javi Martín
116bdebc96 Don't add CKEditor attachments to version control 2018-09-12 12:35:28 +02:00
Angel Perez
c643656067 Add Capistrano task to automate maintenance mode 2017-11-17 13:11:17 -04:00
Bertocq
ba198726f2 Remove Netbeans folder from .gitignore
Why:

* IDE/Text editor specific files and folders to be ignored should be on each developer's personal .gitignore_global file

How:

* If you're affected by this change, check https://help.github.com/articles/ignoring-files/#create-a-global-gitignore
2017-09-19 00:34:41 +02:00
iagirre
1356ea217b Erased extra empty HTML for comments without replies. Added .gitignore rules for Netbeans projects
Cambios para hacer commit:
	modificado:    .gitignore
	modificado:    app/assets/javascripts/comments.js.coffee
	modificado:    app/views/comments/_comment.html.erb
	modificado:    spec/features/comments/debates_spec.rb
2017-09-13 13:30:37 +02:00
Amaia Castro
c1de2dced4 Custom content blocks for top_links and footer 2017-04-06 17:00:05 +02:00
Julian Herrero
fec84c4710 include public/sitemap to gitignore 2016-12-02 11:30:12 +01:00
rgarcia
90ee85ecdf ignores byebug history 2016-01-07 17:51:06 +01:00
rgarcia
814744e1af add beta tester list to .gitignore 2015-08-29 15:42:52 +02:00
Alejandro
71b9c84b7f Added ghostscript to Readme. Required for captcha 2015-08-20 21:18:31 +02:00
Manuel Maldonado
4b501ee46b Capistrano recipe 2015-08-12 01:36:42 +02:00
Juanjo Bazán
949f8a68df adds sample deploy-secrets.yml file 2015-08-07 12:19:01 +02:00
rgarcia
14e48035f6 ignores local test coverage stats 2015-08-05 14:17:18 +02:00
rgarcia
723b0584ce removes secrets.yml from version control 2015-07-25 18:19:03 +02:00
Alberto García Cabeza
8d0c326267 configures postgres 2015-07-22 13:01:52 +02:00
rgarcia
4aa16e78c2 configure rspec 2015-07-15 13:59:26 +02:00
rgarcia
8db3630837 initial commit 2015-07-15 13:32:13 +02:00