diff options
author | Adam T. Carpenter <atc@53hor.net> | 2021-02-01 17:26:31 -0500 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2021-02-01 17:26:31 -0500 |
commit | c235e308a5f489caf7f6bb734bc78918a4134bdc (patch) | |
tree | 95f0d7c833da76a81e2531f9de089e5a1f69b04a /Bastillefile | |
parent | 0781bed2bc4e5fe1fd0da7ea81e9e810433bc17f (diff) | |
parent | c2b8b817a80d7b8c8a756b5f099329d8e5bc1837 (diff) | |
download | theglassyladies-c235e308a5f489caf7f6bb734bc78918a4134bdc.tar.xz theglassyladies-c235e308a5f489caf7f6bb734bc78918a4134bdc.zip |
Merge branch 'master' of http://192.168.1.50:3000/macon-bastille/theglassyladies
Diffstat (limited to 'Bastillefile')
-rw-r--r-- | Bastillefile | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/Bastillefile b/Bastillefile index dfa7061..168855a 100644 --- a/Bastillefile +++ b/Bastillefile @@ -1,7 +1,8 @@ +# TODO: user! # Dirs and mounts CMD mkdir -p /tmp/build -CMD mkdir -p /var/db/gl -FSTAB /zroot/gl /var/db/gl nullfs rw 0 0 +CMD mkdir -p /var/db/theglassyladies +FSTAB /zroot/theglassyladies /var/db/theglassyladies nullfs rw 0 0 # Prereqs PKG nginx yarn sqlite3 rust @@ -14,18 +15,21 @@ CMD tar -xzvf /tmp/build/master.tar.gz -C /tmp/build CMD CARGO_HOME=/tmp/build SQLITE3_LIB_DIR=/usr/local/lib SQLITE3_INCLUDE_DIR=/usr/local/include cargo install --root /usr/local --path /tmp/build/theglassyladies/dichroism # Build frontend +CMD cp /var/db/theglassyladies/env.production /tmp/build/theglassyladies/iridescence/.env.production CMD cd /tmp/build/theglassyladies/iridescence ; yarn ; yarn build CMD mv /tmp/build/theglassyladies/iridescence/dist /var/www # Config OVERLAY usr +CMD chmod +x /usr/local/etc/rc.d/dichroism + +# Cleanup +#CMD rm -rf /tmp/build +#CMD pkg remove -y yarn rust +#CMD pkg autoremove -y # Launch -CMD cd /var/db/gl ; dichroism SYSRC nginx_enable=YES SERVICE nginx start - -# Cleanup -CMD rm -rf /tmp/build -CMD pkg remove -y yarn rust -CMD pkg autoremove -y +SYSRC dichroism_enable=YES +SERVICE dichroism start |