mirror of
https://github.com/YunoHost-Apps/glitchsoc_ynh.git
synced 2024-09-03 19:15:59 +02:00
[fix] Update crontab
This commit is contained in:
parent
4045dfd749
commit
4ff6c990cc
2 changed files with 4 additions and 14 deletions
|
@ -1,3 +1,4 @@
|
|||
@hourly cd /opt/__APP__/live && RAILS_ENV=production /opt/__APP__/.rbenv/shims/bundle exec rake mastodon:media:clear
|
||||
@hourly cd /opt/__APP__/live && RAILS_ENV=production /opt/__APP__/.rbenv/shims/bundle exec rake mastodon:push:refresh
|
||||
@hourly cd /opt/__APP__/live && RAILS_ENV=production /opt/__APP__/.rbenv/shims/bundle exec rake mastodon:feeds:clear
|
||||
@daily __APP__ cd /opt/__APP__/live && RAILS_ENV=production /opt/__APP__/.rbenv/shims/bundle exec rake mastodon:media:clear
|
||||
@daily __APP__ cd /opt/__APP__/live && RAILS_ENV=production /opt/__APP__/.rbenv/shims/bundle exec rake mastodon:push:refresh
|
||||
@daily __APP__ cd /opt/__APP__/live && RAILS_ENV=production /opt/__APP__/.rbenv/shims/bundle exec rake mastodon:feeds:clear
|
||||
@daily __APP__ cd /opt/__APP__/live && RAILS_ENV=production /opt/__APP__/.rbenv/shims/bundle exec rake mastodon:users:clear
|
|
@ -154,23 +154,12 @@ RAILS_ENV=production bin/bundle exec rails db:setup
|
|||
RAILS_ENV=production bin/bundle exec rails --trace assets:precompile
|
||||
CCOMMANDS
|
||||
|
||||
# TODO: Doesn't work for the moment,
|
||||
# Mastodon need a user for creating an administator account
|
||||
# Create admin user
|
||||
# Create confirm email
|
||||
sudo su - $app <<ACOMMANDS
|
||||
pushd ~/live
|
||||
# RAILS_ENV=production bin/bundle exec rails mastodon:make_admin USERNAME=$admin_mastodon
|
||||
# RAILS_ENV=production bin/bundle exec rails mastodon:confirm_email USER_EMAIL=$admin_mastodon@$domain
|
||||
ACOMMANDS
|
||||
|
||||
# init rbenv & create bundle
|
||||
sudo su - $app <<BCOMMANDS
|
||||
. ~/.profile
|
||||
type rbenv
|
||||
BCOMMANDS
|
||||
|
||||
|
||||
# Add Services
|
||||
pushd $(popd)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue