Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/update deployment tasks #309

Merged
merged 5 commits into from
Jun 28, 2022
Merged

Fix/update deployment tasks #309

merged 5 commits into from
Jun 28, 2022

Conversation

tsubik
Copy link
Collaborator

@tsubik tsubik commented Jun 24, 2022

I refactored deployment scripts for otp portal and observations tool. Here I'm refactoring and actually fixing deployments from the backoffice + small performance improvements.

@tsubik tsubik requested a review from santostiago June 24, 2022 18:10
end
command = "export PATH=\"/home/ubuntu/.rvm/gems/ruby-2.4.6/bin:/home/ubuntu/.rvm/gems/ruby-2.6.1@global/bin:/home/ubuntu/.rvm/rubies/ruby-2.6.1/bin:/home/ubuntu/bin:/home/ubuntu/.local/bin:/home/ubuntu/.nvm/versions/node/v10.9.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/ubuntu/.rvm/bin\"; cd ../../otp-observations-tool#{file_path}; npm install; npm run transifex:pull; npm run #{build_method}-build"
command = if Rails.env.staging?
"$HOME/otp-observations-tool-staging/script/deploy staging"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tsubik why don't we run npm install and so on, anymore?

Copy link
Contributor

@santostiago santostiago left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just didn't understand why don't we refresh and redeploy from transifex (that's kind of the purpose of the buttons).
The rest is fine! :)

@tsubik
Copy link
Collaborator Author

tsubik commented Jun 28, 2022

Everything is in deploy script take a look at otp-portal and tool repo and look into deploy script there.

@tsubik
Copy link
Collaborator Author

tsubik commented Jun 28, 2022

The same script is used now in post-receive hooks (I removed most of commands from those hooks, just leaving invocation of the script), just to have a single script wrapper for deployment.

@tsubik tsubik merged commit e4df46b into develop Jun 28, 2022
@tsubik tsubik deleted the fix/update-deployment-tasks branch June 28, 2022 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants