commit
423c0c9311
4 changed files with 12 additions and 5 deletions
|
@ -1,4 +1,3 @@
|
||||||
sudo: true
|
|
||||||
dist: xenial
|
dist: xenial
|
||||||
#addons:
|
#addons:
|
||||||
# apt:
|
# apt:
|
||||||
|
@ -9,7 +8,7 @@ dist: xenial
|
||||||
# - mysql-client
|
# - mysql-client
|
||||||
language: node_js
|
language: node_js
|
||||||
node_js:
|
node_js:
|
||||||
- "lts/*"
|
- "lts/dubnium"
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- "node_modules"
|
- "node_modules"
|
||||||
|
|
|
@ -3,6 +3,8 @@
|
||||||
spee.ch provides a user-friendly, custom-designed, image and video hosting site backed by a decentralized network and
|
spee.ch provides a user-friendly, custom-designed, image and video hosting site backed by a decentralized network and
|
||||||
blockchain ([LBRY](https://lbry.tech/)). Via just a small set of config files, you can spin your an entire spee.ch site back up including assets.
|
blockchain ([LBRY](https://lbry.tech/)). Via just a small set of config files, you can spin your an entire spee.ch site back up including assets.
|
||||||
|
|
||||||
|
**Please note: the spee.ch code base and setup instructions are no longer actively maintained now that we have lbry.tv. Proceed at your own caution. Setup will require dev ops skills.**
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
For a completely open, unrestricted example of a spee.ch site, check out https://www.spee.ch.
|
For a completely open, unrestricted example of a spee.ch site, check out https://www.spee.ch.
|
||||||
|
@ -105,7 +107,7 @@ $ npm run start
|
||||||
|
|
||||||
#### Customize your app
|
#### Customize your app
|
||||||
|
|
||||||
Check out the [customization guide](https://github.com/lbryio/spee.ch/blob/readme-update/customize.md) to change your app's appearance and components
|
Check out the [customization guide](https://github.com/lbryio/spee.ch/blob/master/customize.md) to change your app's appearance and components
|
||||||
|
|
||||||
#### (optional) add custom components and update the styles
|
#### (optional) add custom components and update the styles
|
||||||
|
|
||||||
|
|
|
@ -201,6 +201,10 @@ export default (db, table, sequelize) => ({
|
||||||
}
|
}
|
||||||
|
|
||||||
return claimArray[0];
|
return claimArray[0];
|
||||||
|
})
|
||||||
|
.catch(error => {
|
||||||
|
logger.verbose(`resolveClaim failed: ${error}`)
|
||||||
|
reject(error);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -13,8 +13,10 @@ const awaitFileSize = (outpoint, size, interval, timeout) => {
|
||||||
function checkFileList() {
|
function checkFileList() {
|
||||||
logger.debug('checkFileList');
|
logger.debug('checkFileList');
|
||||||
return getFileListFileByOutpoint(outpoint).then(result => {
|
return getFileListFileByOutpoint(outpoint).then(result => {
|
||||||
logger.debug('File List Result', result);
|
const { items: fileInfos } = result;
|
||||||
if (result[0]['completed'] === true || result[0]['written_bytes'] > size) {
|
const fileInfo = fileInfos[0];
|
||||||
|
logger.debug('File List Result', fileInfo);
|
||||||
|
if (fileInfo.completed === true || fileInfo.written_bytes > size) {
|
||||||
logger.debug('FILE READY');
|
logger.debug('FILE READY');
|
||||||
return 'ready';
|
return 'ready';
|
||||||
} else if (timeout !== 0 && Date.now() - start > timeout) {
|
} else if (timeout !== 0 && Date.now() - start > timeout) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue