Commit Graph
37 Commits
Author SHA1 Message Date
Miles Gould 28ac7ff886 Remove one-off tasks that were run for Release 8.
The ElasticSearch index task was run, but failed because we didn't have
an ElasticSearch instance to run it against.
2015-07-09 01:06:39 +01:00
Mackenzie Morgan 7ca89908cd merge from upstream 2015-02-01 22:00:52 -05:00
Shiho Takagi 2aa30475e9 merge 2015-02-01 00:14:52 +11:00
Mackenzie Morgan 3f393b0937 moving si_weight population to one-off 2015-01-30 23:17:42 -05:00
Mackenzie Morgan 0bdab0d9fc basics of harvest standardized weights 2015-01-28 23:00:16 -05:00
Shiho Takagi 04d61bd040 deployment sript 2015-01-25 16:18:26 +11:00
Miles Gould 57552455e3 Get Heroku app from .travis.yml 2015-01-21 09:13:07 +00:00
Miles Gould 531a0bd9ea Roll our own heroku maintenance:(on|off) script
This allows us to use maintenance mode without installing the full
Heroku toolbelt, which we can't do on the (much faster!) container-based
infrastructure.

We add a (temporary) deployment to my sandbox from the travis_containers
branch: muckingabout with one branch for both container-based and
VM-based approaches was starting to get confusing.
2015-01-21 00:36:47 +00:00
Miles Gould 4b90f6385b Merge branch 'dev' into load_alternate_names
Conflicts:
	Gemfile.lock
	script/deploy-tasks.sh
2014-12-01 10:47:10 +00:00
Skud 6f3e430840 Add deploy tasks for new crops 2014-12-01 21:23:15 +11:00
Miles Gould 36be5e9533 Hardcode alternate-name CSV file path. 2014-10-19 21:54:46 +01:00
Miles Gould 0aea1721d8 Add altname data and include load in deploy-tasks. 2014-10-19 17:24:18 +01:00
Shiho Takagi cf07ecfa4a improved test spec, crop page and added rake task 2014-10-05 23:16:46 +11:00
Skud e002cb2d35 added deploy task to remove unused photos 2014-10-02 17:48:19 +10:00
Skud 25abcdc923 Upload tomato varieties to crop database 2014-09-28 13:50:55 +10:00
Mackenzie Morgan f3c3d73ef1 updating test for harvest units to list the valid units and adding a task to correct misspelled pint harvests already in the database 2014-08-10 19:49:10 -04:00
Skud 8223025d35 Set default plantings_count to 0 not nil 2014-07-18 18:06:43 +10:00
Miles Gould f723fea4e2 Load plant parts in db:seed and rake task. 2013-10-30 23:49:34 +00:00
Skud b63c854b16 Set default garden locations
Also created a handy rake task to depopulate Null Island (i.e. fix up
anyone's lat/long that's somehow ended up as 0,0).
2013-10-25 23:45:48 +11:00
Skud c64499881d Removed deploy script reminders, as no longer necessary 2013-09-12 22:05:35 +10:00
Skud 8a203deb19 Use experimental user-env-compile heroku addon
It seems that heroku generally denies us access to ENV['...'] during asset
compilation. They have reasonably good reasons for this, and yet I don't
know how else we're meant to get at our API keys (other than hardcoding
them into our config files, which we don't want to do).

So, to work around this, I'm recommending the use of the (experimental,
subject to removal/change, sigh) user-env-compile heroku addon.  This
lets us use ENV during asset compilation.

For more info see
https://devcenter.heroku.com/articles/labs-user-env-compile
2013-09-11 17:32:31 +10:00
Miles Gould b30ea755e0 Merge branch 'planting-owner' into dev
Conflicts:
	script/deploy-tasks.sh
2013-08-27 16:35:32 +01:00
Skud 7b307ab907 reined in over-enthusiastic rake task 2013-08-27 11:18:41 +10:00
Skud 99bfc704dc Added plantings_count (i.e. counter_cache) to Member
Also removed the superfluous .plantings_count method on Crop, which was
causing some confusion.

A thing we learned today: we should use .size to find the size of
ActiveRecord collections, not .count, because .count doesn't use the
cache (while .size does).
2013-08-26 13:54:09 +10:00
Skud 73b7897c28 Added rake task to update planting owner
(using planting.garden.owner)
2013-08-26 12:28:01 +10:00
martyhines eaa8ca0084 set default crop creator (rake task, deploy script, seeds) 2013-08-20 22:30:08 -04:00
Skud 06c608e6b6 added rake task to reset crop.plantings_count 2013-08-19 18:10:11 +10:00
Skud 6c8b959120 rake task to set seed.tradable_to to nowhere 2013-07-23 20:47:06 +10:00
Lucy e7b0165628 Updated script/deploy-tasks.sh to include nil_account_type task.
We added a rake task to ensure all account have a Free account
type. This ensures the new nil_account_type rake task will be run
at deploy time.
2013-07-03 11:22:47 +01:00
Miles Gould 5e271e6279 Fix to deploy-tasks bash script. 2013-06-04 13:37:54 +01:00
Skud 266575252f minor improvement to paypal API env var checks 2013-06-04 21:44:32 +10:00
Skud 660d70645e Added oneoff task to set up shop/products/etc 2013-06-04 20:21:59 +10:00
Skud 4919bc9670 added reminder to deploy tasks to set paypal details 2013-06-04 19:44:23 +10:00
Skud 5ba023ad01 added deploy tasks script 2013-06-03 14:34:29 +10:00
Miles Gould 15ce32e786 Only stash unindexed changes if there are any.
This allows `git commit --amend` to work properly.
2012-09-10 17:42:29 +01:00
Miles Gould b173aad6b7 Added pre-commit hook script to run spec tests.
Based on instructions found at
http://codeinthehole.com/writing/tips-for-using-a-git-pre-commit-hook/

I have no idea how portable this will be.
2012-09-10 15:29:49 +01:00
Cesy Avon 95145f2869 Moving development to top level directory 2012-08-23 10:41:00 -07:00