Fix directory structure in actdev deployment script. cyipt/actdev-ui#75

This commit is contained in:
Dustin Carlino 2021-04-29 13:41:54 -07:00
parent 03fade1aa7
commit 8051608747

View File

@ -13,13 +13,13 @@ cp -Rv web/build/dist/abstreet* abst_actdev
mv abst_actdev/abstreet.html abst_actdev/index.html
# Copy just what's needed from data
mkdir -p abst_actdev/system/gb
mkdir -p abst_actdev/data/system/gb
# We could just copy all of system/gb and remove leeds and london, but
# actually, having this list in a script somewhere is kind of convenient.
for dir in allerton_bywater ashton_park aylesbury aylesham bailrigg bath_riverside bicester castlemead chapelford chapeltown_cohousing clackers_brook culm dickens_heath didcot dunton_hills ebbsfleet exeter_red_cow_village great_kneighton halsnead hampton handforth kergilliack kidbrooke_village lcid lockleaze long_marston marsh_barton micklefield newborough_road newcastle_great_park northwick_park poundbury priors_hall taunton_firepool taunton_garden tresham trumpington_meadows tyersal_lane upton water_lane wichelstowe wixams wynyard; do
cp -Rv data/system/gb/$dir abst_actdev/system/gb
cp -Rv data/system/gb/$dir abst_actdev/data/system/gb
done
cp -Rv data/system/study_areas abst_actdev/system
cp -Rv data/system/study_areas abst_actdev/data/system
gzip -v `find abst_actdev/ | grep bin | xargs`
zip -r abst_actdev abst_actdev