add manual deployment scripts #96

Merged
maxime.batista merged 1 commits from manual-deploy into master 1 year ago
There is no content yet.
maxime.batista added 1 commit 1 year ago
continuous-integration/drone/push Build is passing Details
3984b228a5
add manual deployment scripts
maxime.batista force-pushed manual-deploy from 3984b228a5 to 87e73a3c5f 1 year ago
maxime.batista merged commit 93612c473b into master 1 year ago
maxime.batista deleted branch manual-deploy 1 year ago
clement.freville2 requested changes 1 year ago

The shebang is missing.

The shebang is missing.
export OUTPUT=$1
export BASE=$2
rm -rf $OUTPUT/*

Quote the variable as it may contain spaces. Also, if $1 isn't defined, this will literally execute rm -rf /*

Quote the variable as it may contain spaces. Also, if `$1` isn't defined, this will literally execute `rm -rf /*`
rm -rf $OUTPUT/*
echo "VITE_API_ENDPOINT=$BASE/api" >> .env.PROD
echo "VITE_BASE=$BASE" >> .env.PROD

Just pass those as environment variables? They don't need to be in a file.

Just pass those as environment variables? They don't need to be in a file.
require __DIR__ . "/../views-mappings.php";
// THIS VALUE IS TO SET IN THE CI
const BASE_PATH = null;

"" is a reasonable default.

`""` is a reasonable default.

Reviewers

clement.freville2 requested changes 1 year ago
continuous-integration/drone/push Build is passing
The pull request has been merged as 93612c473b.
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: IQBall/Application-Web#96
Loading…
There is no content yet.