Skip to content

Commit

Permalink
Move out of backblaze (#259)
Browse files Browse the repository at this point in the history
* Move out of backblaze

* Use same paths for production and development

* Uploads

* Uploads
  • Loading branch information
easafe authored Jul 2, 2024
1 parent 8b2715a commit 96cdc0a
Show file tree
Hide file tree
Showing 76 changed files with 200 additions and 409 deletions.
1 change: 1 addition & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
.spago
output
- run: psql -f src/Server/sql/index.sql postgresql://merochat_test:merochat_test@localhost:5432/merochat_test
- run: mkdir -p file/upload
- run: npm install
- run: spago build
- run: spago test
14 changes: 4 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,24 +1,18 @@
bower_components
node_modules
node_modules/
.pulp-cache
output
output/
generated-docs
.psc-package
.psc*
.purs*
.psa*
.pulp_cache
.vscode
src/Client/media/upload/
configuration.json
old/
fix
output-es/
distcopy/
todo
dce-output/
.cache/
.spago/
dist/
parcel*.log
file/bundle/
file/upload
spago.log
8 changes: 2 additions & 6 deletions build-production.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
#!/bin/bash

dist_folder="dist/production"
bundle_folder="bundle"
bucket="ourmelon"

npm install &&
rm -rf dist/production &&
rm -rf file/bundle &&
rm -rf output-es &&
spago -x production.dhall build &&
npx webpack --progress --config webpack.production.config.js &&
npx webpack --progress --config webpack.landing.config.js &&
b2-linux sync --keepDays 7 --replaceNewer "$PWD/$dist_folder" "b2://$bucket/$bundle_folder" &&
pm2 restart server --update-env

File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
187 changes: 25 additions & 162 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 96cdc0a

Please sign in to comment.