1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/plume_ynh.git synced 2024-09-03 20:15:54 +02:00

Updated to first alpha version

This commit is contained in:
anmol26s 2018-09-19 00:36:04 +05:30
parent 3b868543b0
commit 7391398e21
2 changed files with 8 additions and 13 deletions

View file

@ -1,6 +1,6 @@
SOURCE_URL=https://github.com/Plume-org/Plume/archive/ae8f8a1411a58236dee9ea561f05431e1c225d4f.zip
SOURCE_SUM=82b23a2da1077128c2f30e4d1ee29fa57b6a206038424f5589e1601223cf5b20
SOURCE_URL=https://github.com/Plume-org/Plume/archive/0.2.0-alpha-1.tar.gz
SOURCE_SUM=5e825275e00420bb3fb3fbac496b2ffb310d84ffab8c872293e7d73f752917b2
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=zip
SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true
SOURCE_FILENAME=

View file

@ -128,8 +128,8 @@ ynh_setup_source "$final_path"
# Create a system user
ynh_system_user_create $app $final_path
( cd $final_path && curl -sf -L https://static.rust-lang.org/rustup.sh | sh -s -- --channel=nightly --date=2018-05-31 )
export PATH="$PATH:$final_path/.cargo/bin:$final_path/.local/bin:/usr/local/sbin"
( cd $final_path && curl -sf -L https://static.rust-lang.org/rustup.sh | sh -s -- --channel=nightly --date=2018-07-17 )
export PATH="/root/.cargo/bin:$final_path/.local/bin:/usr/local/sbin"
( cd $final_path && cargo build )
( cd $final_path && cargo install diesel_cli --no-default-features --features postgres --version '=1.2.0' )
( cd $final_path && diesel migration run --database-url postgres://$db_name:$db_pwd@localhost:5432/plume )
@ -144,11 +144,9 @@ export PATH="$PATH:$final_path/.cargo/bin:$final_path/.local/bin:/usr/local/sbin
ynh_add_nginx_config
#=================================================
# SPECIFIC SETUP
#=================================================
# ...
#=================================================
# Optional, only do it if the database URL is not
# postgres://plume:plume@localhost/plume
( cd $final_path && export DB_URL=postgres://$db_name:$db_pwd@localhost:5432/plume )
#=================================================
# SETUP SYSTEMD
@ -168,9 +166,6 @@ ynh_add_nginx_config
# Create a dedicated systemd config
ynh_add_systemd_config
# Optional, only do it if the database URL is not
# postgres://plume:plume@localhost/plume
( cd $final_path && export DB_URL=postgres://$db_name:$db_pwd@localhost:5432/plume )
# Create the media directory, where uploads will be stored
(cd $final_path && mkdir media )